var win = '';
var check=0;
window.name = 'xwin';

function swapimage(val)
{

	
	for(i=1;i<=12;i++)
	{
		divid = 'image' + i;
		if(win.document.getElementById(divid))
		{
			if(i==val)
			{
				win.document.getElementById(divid).style.display='';
			}
			else
			{
				win.document.getElementById(divid).style.display='none';
			}
		}
	}
}

function swapimage1(val)
{
	for(i=1;i<=12;i++)
	{
		if(document.getElementById('show' + i))
		{
			if(i==val)
			{
				document.getElementById('show' + i).style.display='';
							}
			else
			{
				document.getElementById('show' + i).style.display='none';
				
			}
		}
	}
}
function imagepopup(htmlcontent) {
if(win.closed || check==0) {
var w = 650;
var h = 810;
var lft = (screen.width/2)-(w/2);
var wtop = (screen.height/2)-(h/2);
win = window.open ('', '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width='+w+', height='+h+', top='+wtop+', left='+lft);
win.document.write(htmlcontent);
win.document.close();
}


var win1='';var count1=0;
function printpopup(printcontent){
if(win1.closed || count1==0){
win1 = window.open('', '','scrollbars=yes,status=yes,menubar=no,resizable=no,width=640,height=500');count1++;} 
win1.document.write(printcontent);
win1.document.close();
}
}
