/*

function is_MacIE_Browser()
{
  is_MacIE_Browser=false;
  isMac = false;
  var browser=navigator.platform;
  if((browser.indexOf("Mac") != -1))ismac=true;
  if((browser.indexOf("mac") != -1))ismac=true;
  if(navigator.appName=="Microsoft Internet Explorer" && ismac) {
     is_MacIE_Browser = true;
  }
}
		*/
function Show_Ad(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +120;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=200,width=" + adjustedWidth + ",height=" + adjustedHeight;
	 //alert("TargetUrl="+target_url);
  // var curWin = window.open('',"asprinted","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   //curWin.close();
   
   var newWin = window.open('',"asprinted",param3,true); 
   newWin.document.write('<html><body><p<center><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form><p><img src="'+target_url+'"/><p><p><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form></center></body></html>');
}

function Show_Dp(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +120;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=200,width=" + adjustedWidth + ",height=" + adjustedHeight;

  // var curWin = window.open('',"asprinted","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   //curWin.close();
   
   var newWin = window.open('',"asprinted",param3,true); 
   newWin.document.write('<html><body><p<center><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form><p><img src="'+target_url+'"/><p><p><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form></center></body></html>');
}


function Show_Graphic(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +120;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=200,width=" + adjustedWidth + ",height=" + adjustedHeight;
   // var curWin = window.open(target_url,"asprinted","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   //curWin.close();
   
   var newWin = window.open('',"asprinted",param3,true); 
   newWin.document.write('<html><body><p><center><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form><p><img src="'+target_url+'"/><p><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form></center></body></html>');
}

function Show_Page(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +80;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=no,top=0,left=100,width=" + adjustedWidth + ",height=" + adjustedHeight;
   //alert("target_url="+target_url);
   //var curWin = window.open(target_url,"page","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   //curWin.close();
   var newWin = window.open(target_url,"page",param3,true); 
   //newWin.document.write('<html><body><script>this.location="'+target_url+'";</script></body></html>');
 
}

function Show_All(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +80;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=no,top=50,left=20,width=" + adjustedWidth + ",height=" + adjustedHeight;
   //alert("target_url="+target_url);
   //var curWin = window.open(target_url,"page","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=180,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   //curWin.close();
   var newWin = window.open(target_url,"allpage",param3,true); 
   //newWin.document.write('<html><body><script>this.location="'+target_url+'";</script></body></html>');
 
}



function Show_Ad_On_Mac(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +80;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=no,top=50,left=20,width=" + adjustedWidth + ",height=" + adjustedHeight;
  
   var newWin = window.open(target_url,"asprinted",param3,true); 
    newWin.document.write('<html><body><p<center><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form><p><img src="'+target_url+'"/><p><p><FORM METHOD="POST" ACTION=""><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="javascript:window.close();"</form></center></body></html>');

   //newWin.document.write('<html><body><img src="'+target_url+'"/></body></html>');
}


/*

function Show_Story(target_url,adWidth,adHeight)
{
   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 50;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +80;
   var adjustedHeight = adHeight2.toString();
   var param3 = "toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth + ",height=" + adjustedHeight;
   var curWin = window.open(target_url,"asprinted","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   curWin.close();
   var newWin = window.open(target_url,"asprinted",param3,true); 
   newWin.document.write('<html><body><script>this.location="'+target_url+'";</script></body></html>');
 
}

function Update_Ad_Image(imageName,imageUrl,webUrlName,weburl)
{
	//var href = top.document.getElementById('adhref1').href.value;
	//alert ( "in update ad image");// ...href="+href);
	top.document.getElementById(imageName).src= imageUrl;
	top.document.getElementById(webUrlName).href= weburl;
		top.document.getElementById(webUrlName).target= "_blank";
}
function Show_Double(target_url,adWidth,adHeight)
{

   var adWidth1 = parseInt(adWidth);
   var adWidth2 = adWidth1 + 30;
   var adjustedWidth = adWidth2.toString();
   var adHeight1 = parseInt(adHeight);
   var adHeight2 =  adHeight1 +30;
   var adjustedHeight = adHeight2.toString();
   var param3 = "fullscreen=no,toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=yes,top=0,left=185,width=" + adjustedWidth + ",height=" + adjustedHeight;
   var curWin = window.open(target_url,"asprinted",param3);
  // var curWin = window.open(target_url,"asprinted","toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0,width=" + adjustedWidth +",height=" + adjustedHeight,true);    //    ,''toolbar=no,status=no,scrollbars,location=no,menubar=no,directories=no,resizable=yes,top=0,left=0");
   //curWin.close();
   
   //var newWin = window.open(target_url,"asprinted",param3,true); 
  // newWin.document.lcation.href= target_url;
}

*/
