
<!--

function open_xlarge_window(url){
  window.open(url,"xlargewindow","toolbar=0,location=0,directories=0,status=1,maximize=0,menubar=0,scrollbars=1,resizable=0,width=500,height=600");
}



//      PositionX = 100;
//      PositionY = 100;
//  defaultWidth  = 500;
//  defaultHeight = 500;
//  var AutoClose = true;

//if (parseInt(navigator.appVersion.charAt(0))>=4){
//var isNN=(navigator.appName=="Netscape")?1:0;
//var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}

//var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
//var optIE='status=no,toolbar=no,menubar=no,location=no,scrollbars=no,width=10,height=10,left='+PositionX+',top='+PositionY;

// var optIE='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;



function popImage(imageURL,imageTitle){

      PositionX = xcurs-200;
      PositionY = ycurs;
  defaultWidth  = 10;
  defaultHeight = 10;
  var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}

var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='status=no,toolbar=no,menubar=no,location=no,scrollbars=no,width=10,height=10,left='+PositionX+',top='+PositionY;

if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
//writeln('width=(document.body.clientWidth-document.images[0].width);');
//writeln('height=(document.body.clientHeight-document.images[0].height);');
writeln('width=(document.images[0].width+14);');
writeln('height=(document.images[0].height+66);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["SAYAL"].width;');writeln('window.innerHeight=document.images["SAYAL"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');

writeln('<a href="#"><img name="SAYAL" src='+imageURL+' style="display:block" galleryimg="false"></body></html></a>');

writeln('<sc'+'ript>');
writeln('am = "Copyright (C) 2007 SAYAL Electronics. All Rights Reserved.";');
writeln('bV  = parseInt(navigator.appVersion)');
writeln('bNS = navigator.appName=="Netscape"');
writeln('bIE = navigator.appName=="Microsoft Internet Explorer"');
writeln('function nrc(e) {');
writeln('   if (bNS && e.which > 1){');
writeln('      alert(am)');
writeln('      return false');
writeln('   } else if (bIE && (event.button >1)) {');
writeln('     alert(am)');
writeln('     return false;');
writeln('   }}');
writeln('document.onmousedown = nrc;');
writeln('if (document.layers) window.captureEvents(Event.MOUSEDOWN);');
writeln('if (bNS && bV<5) window.onmousedown = nrc;');
writeln('</sc'+'ript>');
close();		
}}



function newWindow(source,name,w,h,s)
{
// reference this function by using: 
// onEvent="newWindow('[FILE NAME]','[WINDOW NAME]',[WIDTH],[HEIGHT],'[SCROLLBAR STATUS]')" 
// (i.e. onClick="newWindow('index.asp','popup',640,480,'yes')" )

//window.open(source, name, 'width=' + w + ',height=' + h + 'statusbar=-1,scrollbars=' + s)

  window.open(source, null, "width=640,height=480,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");

}
// -->

<!-- Hide from other browsers
    function doButton()
    {
       // document.mboxsummary.action.value=sButton;
        //openWindow=window.open("", null, "width=640,height=480,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
        document.form1.submit();
        return true;
    }
   
  // Stop Hididng from other Browsers  -->

<!--


function poopy(varFnum)
{
  window.open("", "securepage", "width=640,height=480,scrollbars=yes,status=yes,toolbar=yes,menubar=no,location=no");
  eval("document.form" + varFnum + ".submit();");
//     <input type="image" name="image" src="../images/b_orderC.gif" width="84" height="19" border="0" alt="Add <%=(rsEflyer.Fields.Item("Description_Title").Value)%> to your Order..." onClick="return(poopy)">
}
// -->


// right mouse click popup
//
//am = "Copyright (C) 2003-2004 SAYAL Electronics. All Rights Reserved.";
//bV  = parseInt(navigator.appVersion)
//bNS = navigator.appName=="Netscape"
//bIE = navigator.appName=="Microsoft Internet Explorer"

//function nrc(e) {
//   if (bNS && e.which > 1){
//      alert(am)
//      return false
//   } else if (bIE && (event.button >1)) {
//     alert(am)
//     return false;
//   }
//}
//document.onmousedown = nrc;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//if (bNS && bV<5) window.onmousedown = nrc;


