
function winopen(theURL, Name, popW, popH) {
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp;
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

function winopens(theURL, Name, popW, popH) {
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars=yes';
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

function winopenf(theURL, Name, popW, popH) {
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes';
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}



function instantinfo(id, scope) {
  winopens("instantinfo.php?id="+id+"&scope="+scope, "instantinfo", 517, 600);
}

function email(id) {
  winopen("sendmail.php?id="+id, "email", 365, 430);
}

function addtofavorites(id) {
  winopen("favorites.php?action=add&id="+id, "addfavorites", 200,150);
}

function removefromfavorites(id) {
  winopen("favorites.php?action=remove&id="+id, "addfavorites", 200, 100);
}

function fashionpreview() {
  winopen("http://www.premierbride.com/fashion/pb_fashion_main.html", "fashion", 500, 560);
}
  
function ExtLink(id) {
  winopenf("click.php?type=w&id="+id, "ExternalxWebsite", 800, 600);
}

function ExtLinks(id) {
  winopenf("click.php?type=sw&id="+id, "ExternalxWebsite", 800, 600);
}

function POPUP1() {
	var iMyWidth;
	var iMyHeight;
	iMyWidth = (window.screen.width/2) - (250 + 15); 
	iMyHeight = (window.screen.height/2) - (350 + 10); 
	var win2 = window.open("http://www.premierbride.com/pb_termsofuse.html","clipconsole","status=no,width=500,height=560,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
	win2.focus();
}
function POPUP2() {
	var iMyWidth;
	var iMyHeight;
	iMyWidth = (window.screen.width/2) - (250 + 15); 
	iMyHeight = (window.screen.height/2) - (350 + 10);
	var win2 = window.open("http://www.premierbride.com/pb_privacypolicy.html","clipconsole","status=no,width=500,height=560,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
	win2.focus();
}
function POPUP3() {
	var iMyWidth;
	var iMyHeight;
	iMyWidth = (window.screen.width/2) - (250 + 15); 
	iMyHeight = (window.screen.height/2) - (350 + 10);
	var win2 = window.open("http://www.premierbride.com/pb_aboutus.html","clipconsole","status=no,width=500,height=560,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
	win2.focus();
}
