function PopUp(pageName,name,scroll,w,h) {
	var newWindow = window.open(pageName,name,'scrollbars='+scroll+',resizable=yes,height='+h+',width='+w+',left=0,top=0').blur();
window.focus();
	
}

function popUpEmailfriend(url){
	window.open(url,"pop","width=500,height=300,toolbars=0,scrollbars=no,left=10,top=10")
}


function openPopUp2(pageName) {
	var height = 0;
	var height600 = 400;
var height800 = 500;
var height1024 = 655;
	var width = 0;
	var width600 = 516;
var width800 = 516;
var width1024 = 500;
	var scroll = "";
	var scrollno = "no";
	var scrollyes = "yes";
if (screen.width == 640)
{
height = height600;
width = width600;
scroll = scrollyes;
}
else if (screen.width == 800)
{
height = height800;
width = width800;
scroll = scrollyes;
}
else if (screen.width == 1024)
{
height = height1024;
width = width1024;
scroll = scrollno;
}
else
 {
 height= height1024;
 width = width1024;
 scroll = scrollno;
 }

	var newWindow = window.open(pageName,'detail','scrollbars='+scroll+',resizable=no,height='+height+',width='+width+',left=0,top=0');
	if (newWindow.opener == null) {
		newWindow.opener = window;
}
	else {
		browserVer = parseInt(navigator.appVersion);
		if(browserVer >3) {newWindow.focus();}
	}
}


function openPopUp3(pageName,name,scroll,w,h) {
	var newWindow = window.open(pageName,name,'scrollbars='+scroll+',resizable=no,height='+h+',width='+w+',left=0,top=0');
	if (newWindow.opener == null) {
		newWindow.opener = window;
}
	else {
		browserVer = parseInt(navigator.appVersion);
		if(browserVer >3) {newWindow.focus();}
	}
}
