var win = null;
var win1 = null;  




function NewWindow(mypage,myname,w,h,scroll){
LeftPosition =  0;
TopPosition =  0;

settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function NewWindow1(mypage,myname,w,h,scroll){
LeftPosition =  0;
TopPosition =  0;

settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';


settings1 ='height=320,width=484,top=0,left=0,scrollbars=no,resizable';

win = window.open(mypage,myname,settings)

}

var weathertheURL = 'weather.asp';
var weathertheURL1 = '../weather.asp';
var weatherwidth1  = 795;
var weatherheight1 = 520;

<!-- http://208.20.67.81/weather/lab/broadcast.jpg -->

var weathertheURL2 = 'http://66.165.158.190/weather/lab/broadcast.jpg';
var weatherwidth2  = 484;
var weatherheight2 = 320;
var weatherleft =  screen.width/2-100;
var weathertop =  screen.height/2-100;


var CrusetheURL = 'PopCruse.asp';
var Crusewidth  = 350;
var Cruseheight = 380;
var Cruseleft =  screen.width/2-100;
var Crusetop =  screen.height/2-100;


function weather() {
newWindow = window.open(weathertheURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,top=0,left=0,width='+weatherwidth1+',height='+weatherheight1);
newWindow2 = window.open(weathertheURL2,'newWindow2','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,top='+weathertop+',left='+weatherleft+',width='+weatherwidth2+',height='+weatherheight2);
}
function weather_in() {
newWindow = window.open(weathertheURL1,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,top=0,left=0,width='+weatherwidth1+',height='+weatherheight1);
newWindow2 = window.open(weathertheURL2,'newWindow2','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,top='+weathertop+',left='+weatherleft+',width='+weatherwidth2+',height='+weatherheight2);
}

function PopCruse() {
newWindow = window.open(CrusetheURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,top=150,left=250,width='+Crusewidth+',height='+Cruseheight);
}
 
<!--   FOR OUTLET SEARCH -->

function searchsubmit()
{
	document.search.delupdate.value="search";	
	document.search.submit();
}
<!--   FOR OUTLET SEARCH FINALE-->

<!--  BASKET FOR OUTLET -->

function del(num)
{
	document.tofes.delupdate.value="delete";	
	document.tofes.number.value=num;	
	document.tofes.submit();
}


function delal()
{
document.tofes.delupdate.value="delal";	
document.tofes.submit();
}



var path_secure="https://secure.icservice.co.il/yachta/"

function goForit() {
var basket_id_file;
var quan;
var total;


basket_id_file=this.document.send_basket.basket_id_file.value;
quan=this.document.send_basket.quan.value;
total=this.document.send_basket.total.value;

fetch(basket_id_file,quan,total);
theKeeper=window.close()
}
function fetch(basket_id_file,quan,total) {
var root;
var str="basket_id_file="+basket_id_file+"&quan="+quan+"&total="+total
if (opener.closed) {
root=window.open();

root.location.href=path_secure+"order.asp?"+str; 


} else {
opener.location.href=path_secure+"order.asp?"+str; 

   }
}


<!--  BASKET FOR OUTLET -->












<!-- START ONMOUSOVER SHOW BIG PICTURE -->

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()" style="cursor:hand; color:ffffff" >X::::X</span> </div><img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

<!-- END ONMOUSOVER SHOW BIG PICTURE -->




