﻿function popUpWindow(URLStr)
		{
		  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,top=0, left=0,width=920,height=576');
		}

function popUpVideo(URLStr, left, top, width, height)
		{
		  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		
function bgChange(bgname,bg,textcol)
{
document.getElementById(bgname).style.background="url(dating_new_images/myTIC/" + bg + ")";
document.getElementById(bgname).style.backgroundRepeat="no-repeat";
document.getElementById(bgname+'1').style.color=textcol;
}

function popupimage(url,width,height){
//alert('oh');
tmp = window.open('about:blank','','width='+width+',height='+height+',resizable=no,toolbar=no,location=no,status=no,scrollbars=no,menubar=no');
tmp.focus();
tmp.moveTo(50,0);
//tmp = new window;
htmloutput = '<html><head>';
htmloutput += '<style type=\'text/css\'>';
htmloutput += 'html, body{ margin:0; padding: 0; position: absolute; top:0; left:0;}';
htmloutput += '</style>';
htmloutput += '<script Language=\'JavaScript\'>';
htmloutput += 'document.onmousedown = mouseMoveHandler;';
htmloutput += 'document.onblur = mouseMoveHandler;';
htmloutput += 'function mouseMoveHandler(){close_opener();}';
htmloutput += 'function close_opener(){';
htmloutput += 'parentwin = window.self;';
htmloutput += 'parentwin.opener = window.self;';
htmloutput += 'parentwin.close();}';
//htmloutput += 'self.alert(\'haha\');';
//htmloutput += 'function gogo(){';
//htmloutput += 'this.moveTo(1024,100);';
//htmloutput += 'self.close();';
//htmloutput += '}';
htmloutput += '</script></head>';
htmloutput += '<body onKeyPress="self.close();"><img src="'+url+'" width='+width+' height='+height+' border=0>';
htmloutput += '<script Language=\'JavaScript\'>';
htmloutput += '</script>';
htmloutput += '</body>';
//htmloutput += '<body onload=\'javascript:this.alert(\'haha\');close_opener();\'><a href=\'javascript:window.close();\'><img src="'+url+'" width='+width+' height='+height+' border=0/></a></body>';
//htmloutput += '<body onMousedown=\'\'><a href=\'javascript:window.close();\'><img src="'+url+'" width=0 height=0 border=0/></a></body>';
htmloutput += '</html>';

tmp.document.writeln(htmloutput);
}
				
function dynamicdisplay(zap) {

	if (document.getElementById) {
		var abra = document.getElementById(zap).style;
		if (abra.display == "block") {
			abra.display = "none";
		} else {
			abra.display = "block"
		}
		return false
	} else {
		return false
	}
}				
