function openWindow(strUrl,strName,w,h,strScroll) {
			var winLeft = (screen.width - w) / 2;
			var winTop = (screen.height - h) / 2;
	
			var sWinOptions = "height="+h+",width="+w+",left="+winLeft+",top="+winTop+",scrollbars="+strScroll+",target='" + strName + "'";
			objWin = window.open(strUrl,strName,sWinOptions)
			objWin.focus();
}

function showTAF() {
	openWindow("/tellafriend/index.asp?url=<%=getPageURL()%>","TAF",483,500,'yes');
}

//----------------------Returns the attributes for the popup windows-------------//
function GetPopupProps( a_scroll, a_resize, w_width, w_height, a_menubar ) {

		
		var win_w = w_width ;
		var win_h = w_height ;
		var w = (screen.width - win_w) / 2 ;
		var h = (screen.height - win_h) / 2;
		
		var props = "menubar=" + a_menubar + ",top=" + h + ",left=" + w + ",width=" + win_w + ",height=" + win_h +",resizable="+ a_resize + ",scrollbars=" + a_scroll + ",status=no,location=no"

		return props ;
}

//---------------------------Function for opening popup window------------------------------
function OpenPopUp(astr, props){
	mywin = window.open(astr,"Document", props)
}


	    function showLink()
	    {  var sHref="";
	      if (document.per.per_link.selectedIndex<1)
	        return;
	      else // every other option
		if (document.per.per_link.selectedIndex==1)
		{ 
		sHref=document.per.per_link.options[document.per.per_link.selectedIndex].value;
	   	  		  window.open(sHref);
		 /// window.location="/default.asp"; 
	}
		if((document.per.per_link.selectedIndex==2) || (document.per.per_link.selectedIndex==3) || (document.per.per_link.selectedIndex==4)|| (document.per.per_link.selectedIndex==5) || (document.per.per_link.selectedIndex==6) || (document.per.per_link.selectedIndex==7) || (document.per.per_link.selectedIndex==8)) {
			  	  sHref=document.per.per_link.options[document.per.per_link.selectedIndex].value;
	   	  		  window.open(sHref);
			   	}
	        document.per.per_link.selectedIndex = 0;
	    }
var is_mac = (navigator.appVersion.indexOf('Mac') != -1);
var ns4 = (document.layers)? true:false
if (is_mac)
	document.write("<style>.macDropdown{font-size:10px;}</style>");

