function Img2(page) {
	newWin2 = open(page, 2, "location,resizable=yes,status=no,scrollbars=yes,menubar=yes,toolbar=yes,height=460,width=500");
	newWin2.focus();
}

function Win2(page) {
	newWin2 = open(page, 2, "location,resizable=yes,status=yes,scrollbars=yes,menubar=yes,toolbar=yes,height=500,width=640");
	newWin2.focus();
}

function Win3(page) {
	newWin2 = open(page, 2, "location,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=yes,height=250,width=500");
	newWin2.focus();
}

function Win4(page) {
	newWin2 = open(page, 2, "location,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=yes,height=580,width=610");
	newWin2.focus();
}

function loader() {
	LoadPage= open("/loader.html","LoaderWin","resizable=no,height=50,width=400,left=30,top=10");
	LoadPage.focus();
 }

function unloader() {
	LoadPage.close();
	self.focus(); 
}

function openEmailFriendWindow(contentId, channelId, hrf){
	//alert("hrf:"+hrf);
	
	
	 var lc = document.location.host;
	 var pname = document.location.pathname;
	 var domain = document.location.host;
	  
	window.open("/send_email_dlg.php?hrf="+hrf+"&channelId="+channelId+"&articleId="+contentId,null ,"scrollbars=yes,height=600,width=620");
	
}


  function viewPrint(){
	  
	  var lc = document.location.host;
	  var pname = document.location.pathname;
	  var domain = document.location.host;
	  
	  
	  window.open("http://www.poz.com/printView.php?page="+pname+"&domain="+domain,"calWin", "width=700,resize=yes,height=500,left=200,location=no,scrollbars=yes");
	  
	  
	  
	  
  }
  
  
function textCounter(field,cntfield,maxlimit) {
	
	if (field.value.length > maxlimit){
		field.value = field.value.substring(0, maxlimit);
	}
	else{
	  cntfield.innerHTML = ""+(maxlimit - field.value.length);
    }
}    
  
function GetXmlHttpObject(handler)
{ 
	var objXmlHttp=null
	
	if (navigator.userAgent.indexOf("Opera")>=0)
	{
		alert("This example doesn't work in Opera") 
		return 
	}
	if (navigator.userAgent.indexOf("MSIE")>=0)
	{ 
		var strName="Msxml2.XMLHTTP";
		
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
		{
			strName="Microsoft.XMLHTTP"
		} 
		try
		{ 
			objXmlHttp=new ActiveXObject(strName)
			objXmlHttp.onreadystatechange=handler 
			return objXmlHttp
		} 
		catch(e)
		{ 
			alert("Error. Scripting for ActiveX might be disabled") 
			return 
		} 
	} 
	if (navigator.userAgent.indexOf("Mozilla")>=0)
	{
		objXmlHttp=new XMLHttpRequest()
		objXmlHttp.onload=handler
		objXmlHttp.onerror=handler 
		return objXmlHttp
	}
} 


// loader();

