<!--
// Open a window of the desired size in the centre of the screen.
function openWindow(target_file, width, height, hasScrollBars) {
	   // ADD NAME FIELD and make sure it get's focus!!!
	   var theWidth = width;
	   var theHeight = height;
	   var scrollBars = "scrollbars";
	   if (hasScrollBars == false) scrollBars = "scrollbars=0";
	   if ((theWidth == "")||(theWidth == null)) theWidth = 740;
	   if ((theHeight == "")||(theHeight == null)) theHeight = 750;
	   var theLeft = (screen.availWidth - theWidth)/2;
	   var theTop = (screen.availHeight - theHeight)/2;
	   var popupWin = window.open(target_file, '_' + Math.round(Math.random() * 1000000), 'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+',height='+theHeight);
}
//-->

<!--
// Open a window of the desired size in the centre of the screen.
function openLSWindowTandR(year, wkno, lang, tabno, eventid, ref_file, width, height, hasScrollBars) {
	// ADD NAME FIELD and make sure it get's focus!!!
	var theWidth = width;
	var theHeight = height;
	var scrollBars = "scrollbars";
	if (hasScrollBars == false) scrollBars = "scrollbars=0";
	if ((theWidth == "")||(theWidth == null)) theWidth =500;
	if ((theHeight == "")||(theHeight == null)) theHeight =750;
	var theLeft = (screen.availWidth - theWidth)/2;
	var theTop = (screen.availHeight - theHeight)/2;

	var lsURL = "http%3A//www.protennislive.com/frameset.asp%3Fyear%3D"+year+"%26wkno%3D"+wkno+"%26lang%3D"+lang+"%26tabno%3D"+tabno+"%26eventid%3D"+eventid;
	var openUrl = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=0&ci=us-atp&tu="+lsURL+"&rp="+ref_file;
	var popupWin = window.open(openUrl, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight);
}
//-->


// Open a window of the desired size in the centre of the screen.
function openLSWindowTandR_n(year, wkno, lang, tabno, eventid, ref_file, width, height, hasScrollBars) {
	// ADD NAME FIELD and make sure it get's focus!!!
	var theWidth = width;
	var theHeight = height;
	var scrollBars = "scrollbars";
	if (hasScrollBars == false) scrollBars = "scrollbars=0";
	if ((theWidth == "")||(theWidth == null)) theWidth =500;
	if ((theHeight == "")||(theHeight == null)) theHeight =750;
	var theLeft = (screen.availWidth - theWidth)/2;
	var theTop = (screen.availHeight - theHeight)/2;

	var lsURL = "http%3A//www.protennislive.com/frameset_n.asp%3Fyear%3D"+year+"%26wkno%3D"+wkno+"%26lang%3D"+lang+"%26tabno%3D"+tabno+"%26eventid%3D"+eventid;
	var openUrl = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=0&ci=us-atp&tu="+lsURL+"&rp="+ref_file;
	var popupWin = window.open(openUrl, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight);
}

// -->
		
<!--
// Open Enet Updated Scores Window
function OpenENetPulsePopWindow() {
   theWindow = window.open("http://atplive.enetpulse.com/v2/", "eNetPulse", 'menubar=no,width=717,height=442,scrollbars=no,resizable=no' );
}

// -->
		
		
<!--
// Dreamweaver Rollover Image Preload Script
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


<!--
//new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
  var yPosition = 100;

	new ypSlideOutMenu("menu1", "down", 165, yPosition, 146, 230),
	new ypSlideOutMenu("menu2", "down", 222, yPosition, 146, 150),
	new ypSlideOutMenu("menu3", "down", 283, yPosition, 146, 205),
	new ypSlideOutMenu("menu4", "down", 376, yPosition, 169, 205),
	new ypSlideOutMenu("menu5", "down", 445, yPosition, 146, 205),
	new ypSlideOutMenu("menu6", "down", 493, yPosition, 146, 205),
	new ypSlideOutMenu("menu7", "down", 579, yPosition, 146, 220)
//-->

<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function ChangeText(argTagName, argDesc){
	var W3C = (document.getElementById) ? 1 : 0;
	var IE4 = (document.all) ? 1 : 0;
	var NS4 = (document.layers) ? 1 : 0;
	
	if (W3C) {
		document.getElementById(argTagName).innerHTML = argDesc;
	} else if (IE4) {
		document.all.item(argTagName).innerText = argDesc;
	} else if (NS4) {
		// stab in the dark!
			document.layers[argTagName].document.open();
			document.layers[argTagName].document.write(argDesc);
			document.layers[argTagName].document.close();
	} else {
		document.all.item(argTagName).innerText = argDesc;
	}
}

function newproductid(txt, colorname) {       
		ChangeText('MaskName', colorname);
        document.getElementById('bigImg').href="show_product.php?productid="+txt;
		document.getElementById('details').href="show_product.php?productid="+txt;
		}
		function Go1() { 
    var r=0; 
	var plc=0;    
	var b1=0; 
	var sel1=0;
	
    for (r=0; r<(cnt*3); r+=3) { 
     
		newOptionName = new Option(boxes_id[r], boxes_id[r]); 
        self.frm.colorsel.options[b1] = newOptionName; 
		if (boxes_owner[r] == 1) { 
	        self.frm.colorsel.options[b1].selected = true; 
	    }	
		b1++; 	
	 }
	
    Go2(); 
} 

function Go2() { 
    var r=0; 
	var plc=0; 
	var b2=0; 
	var sel = 0; 
	
        
    var str2 = self.frm.colorsel.options[self.frm.colorsel.selectedIndex].text; 
	
    for (r=0; r<=(cnt*3);r++) 
		{ 
			if (boxes_id[r] == str2) 
				{ 				    
					sel = boxes_name[r]; 					
				}
		} 
	 var str3 = sel;
	if(str3==''){}
	else
     changeImages('main_img', 'images/'+str3);   
     
} 
function Go4(price) { 
    var r=0; 
	var plc=0; 
	var b2=0; 
	var sel = 0; 
	
        
    var str2 = self.frm.sizesel.options[self.frm.sizesel.selectedIndex].text; 
	
    for (r=0; r<=(cnt2*4);r++) 
		{ 
			if (boxes_size[r] == str2) 
				{ 				    
					sel = boxes_charge[r]; 					
				}
		} 
	 var str4 = eval(sel)+eval(price);
	if(str4==0){}
	else
		ChangeText('priceTag', str4);
          
} 

//-->
