
function popupemail(){

popupHeight = 350;
popupWidth = 430;
var strURL = "http://www.bapscharities.org/mediacenter/announcements/emailenter.htm";
window1 = window.open(strURL,'emailWindow','top=50,left=50, height=' + popupHeight + ',width=' + popupWidth + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes');			
// return true;
}

function popupannounce(){

popupHeight = 350;
popupWidth = 430;
var strURL = "http://www.bapscharities.org/mediacenter/announcements/announce.htm";
window1 = window.open(strURL,'emailWindow','top=50,left=50, height=' + popupHeight + ',width=' + popupWidth + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes');			
// return true;
}

function popupemail1(){

popupHeight = 380;
popupWidth = 416;
popupTop =  (window.screen.availHeight - popupHeight)/2;
popupLeft = (window.screen.availWidth - popupWidth)/2;



var strURL = "emailenter.htm";
window1 = window.open(strURL,'emailWindow','top=' + popupTop + ',left=' + popupLeft + ',height=' + popupHeight + ',width=' + popupWidth + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes');			
return false;
}


function fullimage2(content,im,wd,ht)
{
   
    editor1=window.open("","Enlarged","width=" + wd + ",height=" + ht +",left=0,top=0,scrollbars")
    
 	if(editor1 != null)
	{
		editor1.focus()
		editor1.document.open('text/html')
		editor1.document.write("<html><head></head>")
		editor1.document.write("<body >")
		editor1.document.write("<center>")
		editor1.document.write('<img src='+im+'  border=0 >')
		editor1.document.write('<br>')
		editor1.document.write('<font face=arial size=2>')
		editor1.document.write(content)
		editor1.document.write('</font>')
		editor1.document.write('<form>')
		editor1.document.write('<input type="button" value=Close onClick="window.close()">')
		editor1.document.write('</form>')
		editor1.document.write("</center>")
		editor1.document.write("</body></html>")
		editor1.document.close()  
	}
}









function imageh(content,im)
{
   
    editorimageh=window.open("","imagehorizontal","width=640,height=505,left=0,top=0")
    
 	if(editorimageh != null)
	{
		editorimageh.focus()
		editorimageh.document.open('text/html')
		editorimageh.document.write("<html><head></head>")
		editorimageh.document.write("<body >")
		editorimageh.document.write("<center>")
		editorimageh.document.write('<img src='+im+'  border=0 >')
		editorimageh.document.write('<br>')
		editorimageh.document.write('<font face=arial size=2>')
		editorimageh.document.write(content)
		editorimageh.document.write('</font>')
		editorimageh.document.write('<form>')
		editorimageh.document.write('<input type="button" value=Close onClick="window.close()">')
		editorimageh.document.write('</form>')
		editorimageh.document.write("</center>")
		editorimageh.document.write("</body></html>")
		editorimageh.document.close()  
	}
}

function imagev(content,im)
{
   
    editorimagev=window.open("","imagevertical","width=440,height=570,left=0,top=0,scrollbars")
    
 	if(editorimagev != null)
	{
		editorimagev.focus()
		editorimagev.document.open('text/html')
		editorimagev.document.write("<html><head></head>")
		editorimagev.document.write("<body  marginwidth=0 marginheight=5 topmargin=5 leftmargin=0>")
		editorimagev.document.write("<center>")
		editorimagev.document.write('<img src='+im+'  border=0 >')
		editorimagev.document.write('<br>')
		editorimagev.document.write('<font face=arial size=2>')
		editorimagev.document.write(content)
		editorimagev.document.write('</font>')
		editorimagev.document.write('<form>')
		editorimagev.document.write('<input type="button" value=Close onClick="window.close()">')
		editorimagev.document.write('<br>')
		editorimagev.document.write('<br>')
		editorimagev.document.write('</form>')
		editorimagev.document.write("</center>")
		editorimagev.document.write("</body></html>")
		editorimagev.document.close()  
	}
}





function digih(content,im)
{
   
    editordigih=window.open("","digiimagehorizontal","width=600,height=570,left=0,top=0")
    
 	if(editordigih != null)
	{
		editordigih.focus()
		editordigih.document.open('text/html')
		editordigih.document.write("<html><head></head>")
		editordigih.document.write("<body >")
		editordigih.document.write("<center>")
		editordigih.document.write('<img src='+im+'  border=0 >')
		editordigih.document.write('<br>')
		editordigih.document.write('<font face=arial size=2>')
		editordigih.document.write(content)
		editordigih.document.write('</font>')
		editordigih.document.write('<form>')
		editordigih.document.write('<input type="button" value=Close onClick="window.close()">')
		editordigih.document.write('</form>')
		editordigih.document.write("</center>")
		editordigih.document.write("</body></html>")
		editordigih.document.close()  
	}
}

function digiv(content,im)
{
   
    editordigiv=window.open("","editordigiimagevertical","width=476,height=680,left=0,top=0")
    
 	if(editordigiv != null)
	{
		editordigiv.focus()
		editordigiv.document.open('text/html')
		editordigiv.document.write("<html><head></head>")
		editordigiv.document.write("<body >")
		editordigiv.document.write("<center>")
		editordigiv.document.write('<img src='+im+'  border=0 >')
		editordigiv.document.write('<br>')
		editordigiv.document.write('<font face=arial size=2>')
		editordigiv.document.write(content)
		editordigiv.document.write('</font>')
		editordigiv.document.write('<form>')
		editordigiv.document.write('<input type="button" value=Close onClick="window.close()">')
		editordigiv.document.write('</form>')
		editordigiv.document.write("</center>")
		editordigiv.document.write("</body></html>")
		editordigiv.document.close()  
	}
}


function imageh800(content,im)
{
   
    editorimageh800=window.open("","imagehorizontal800","width=850,height=750,left=0,top=0")
    
 	if(editorimageh800 != null)
	{
		editorimageh800.focus()
		editorimageh800.document.open('text/html')
		editorimageh800.document.write("<html><head></head>")
		editorimageh800.document.write("<body >")
		editorimageh800.document.write("<center>")
		editorimageh800.document.write('<img src='+im+'  border=0 >')
		editorimageh800.document.write('<br>')
		editorimageh800.document.write('<font face=arial size=2>')
		editorimageh800.document.write(content)
		editorimageh800.document.write('</font>')
		editorimageh800.document.write('<form>')
		editorimageh800.document.write('<input type="button" value=Close onClick="window.close()">')
		editorimageh800.document.write('</form>')
		editorimageh800.document.write("</center>")
		editorimageh800.document.write("</body></html>")
		editorimageh800.document.close()  
	}
}


function imagev800(content,im)
{

editorimagev800=window.open("","imagevorizontal800"," width=750,height=950,left=0,top=0")

   
//  editorimagev800=window.open("","imagevorizontal800","scrollbars=1,width=750,height=900,left=0,top=0")

// editorimagev800=window.open("","imagevorizontal800","scrollbars=1,resizable=1,left=0,top=0")
    
 	if(editorimagev800 != null)
	{
		editorimagev800.focus()
		editorimagev800.document.open('text/html')
		editorimagev800.document.write("<html><head></head>")
		editorimagev800.document.write("<body >")
		editorimagev800.document.write("<center>")
		editorimagev800.document.write('<img src='+im+'  border=0 >')
		editorimagev800.document.write('<br> ')
		editorimagev800.document.write('<font face=arial size=2>')
		editorimagev800.document.write(content)
		editorimagev800.document.write('</font>')
		editorimagev800.document.write('<form>')
		editorimagev800.document.write('<input type="button" value=Close onClick="window.close()">')
		editorimagev800.document.write('</form>')
		editorimagev800.document.write('<br> ')
		editorimagev800.document.write("</center>")
		editorimagev800.document.write("</body></html>")
		editorimagev800.document.close()  
	}
}

