function winResize() {

	var Dwidth = parseInt(document.body.scrollWidth);

	var Dheight = parseInt(document.body.scrollHeight);

	var divEl = document.createElement("div");


	divEl.style.position = "absolute";

	divEl.style.left = "0px";

	divEl.style.top = "0px";

	divEl.style.width = "100%";

	divEl.style.height = "100%";


	document.body.appendChild(divEl);

	//document.body.insertBefore(divEl, document.body.firstChild);

	//alert("Dwidth : " + Dwidth + ", divEl.offsetWidth : " + divEl.offsetWidth + ", 

	//Dheight : " + Dheight + ", divEl.offsetHeight : " + divEl.offsetHeight);


	if(navigator.userAgent.indexOf("MSIE") !=-1)


//	window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight + 10);
	window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight );

	else


	window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight);


	document.body.removeChild(divEl);
}

function PopUp(targetUrl, targetName, targetWidth, targetHeight, targetToolbar, targetDirectories, targetMenubar, targetScrollbars, targetResizable, targetStatus, targetLocation, targetCopyhistory)
{
	var win=window.open(targetUrl, targetName, 'width='+targetWidth+',height='+targetHeight+',toolbar='+targetToolbar+',directories='+targetDirectories+',menubar='+targetMenubar+',scrollbars='+targetScrollbars+',resizable='+targetResizable+',status='+targetStatus+',location='+targetLocation+',copyhistory='+targetCopyhistory);
	win.focus();
}

function OpenPopup()
{
	if(cookieVal("meetdeet_popup") != "1")
	 window.open('/popup/081222.htm', 'unipopup', 'width=387, height=476, toolbar=no, directories=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no,copyhistory=no');
} 

function cookieVal(cookieName)
{
  thisCookie = document.cookie.split("; ");
  for(i=0; i<thisCookie.length; i++)  
  {
	  if(cookieName == thisCookie[i].split("=")[0])
	    return thisCookie[i].split("=")[1]
  }
 	return "x"
}

function mediaWinOpen(url){
		var win
		url = '/mediaview.asp?url=' + url;
		win = window.open(url, 'media', 'width=720, height=460');
		win.focus();
	}

function mediaplay(param, seq){
	var win
	var url = '/viewer/mediaplay.asp?vod='+param+'&seq='+seq;
	win = window.open(url, 'webplayer', 'width=700,height=680,scrollbars=2');
	win.focus();
}

function mediaplay_n(param, seq, pCode, nRseq){
	var win
	var url = '/viewer/mediaplay_n.asp?couCode='+param+'&seq='+seq+'&paycode='+pCode+'&nRseq='+nRseq;
	win = window.open(url, 'webplayer', 'width=680,height=700,scrollbars=0');
	win.focus();
}

