var message="Function Disabled";   //edit this message to say what you want

function clickIE() {if (document.all) {alert(message); return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")


	function right(e) {
	if (navigator.appName == 'Netscape' && 
	(e.which == 3 || e.which == 2))
	return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && 
	(event.button == 2 || event.button == 3)) {
	alert("Getforless Copyright");
	return false;
	}
	return true;
	}
	
	document.onmousedown=right;
	document.onmouseup=right;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	window.onmousedown=right;
	window.onmouseup=right;

{
   menuImage_on = new Image()
   menuImage_off = new Image()
   menuImage_on.src = "Main/Left_CornerRounde_MO.jpg"
   menuImage_off.src = "Main/Left_CornerRounde.jpg"
   
   menuImage_on_2 = new Image()
   menuImage_off_2 = new Image()
   menuImage_on_2.src = "Main/RightCorner_Arrow.jpg"
   menuImage_off_2.src = "Main/Right_CornerRounde.jpg"

   menuImage_on_ro = new Image()
   menuImage_off_ro = new Image()
   menuImage_on_ro.src = "index/fleche_ro_MO.gif"
   menuImage_off_ro.src = "index/fleche_ro.gif"  
   }
function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


function BgChange(aTd1) { 
	
	 document.getElementById(aTd1).style.background="#58595B"; 
} 
	
function BgChange2(aTd1) { 
	 document.getElementById(aTd1).style.background="#C7C8CA"; 
} 

   
function img_on(loc) { 
loc.src=menuImage_on.src; 
   }
function img_off(loc)  { 
loc.src=menuImage_off.src; 
   }

function img_on_2(loc) { 
loc.src=menuImage_on_2.src; 
   }
function img_off_2(loc)  { 
loc.src=menuImage_off_2.src; 
   }

function img_on_ro(loc) { 
loc.src=menuImage_on_ro.src; 
   }
function img_off_ro(loc)  { 
loc.src=menuImage_off_ro.src; 
   }

function Open_Window(mypage,w,h){
        var wf = "";  
		if (w == "" && h=="")
		 {
		//alert('empty');
        wf = wf + "width=280";
        wf = wf + ",height=80";
		 }else{
		 //alert('not empty');
		 wf = wf + "width=" +w;
 		 wf = wf + ",height=" +h;						 
   		  }						 
	    wf = wf + ",top=(screen.width-780)/2";
	    wf = wf + ",left=(screen.height-500)/2";
        wf = wf + ",resizable=no";
        wf = wf + ",scrollbars=no";
        wf = wf + ",menubar=no";
        wf = wf + ",toolbar=yes";
        wf = wf + ",directories=no";
        wf = wf + ",location=no";
        wf = wf + ",status=no";             
        window.open(mypage,'popup',wf);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function print_item()
  {
  window.print()
  }

///changed
function JoinMailing()
{
var error = "";
var _f=document.f_right;

if (_f.email.value == "") 
 { 
	error += "Please fill in an email address.";
 } 
if ((_f.email.value.indexOf ('@',0) == -1 || _f.email.value.indexOf ('.',0) == -1) && _f.email.value != "")
 {
    error += "Please provide a valid email address.";
 } 
	
if (error != "") {
 alert(' ' +error);
 }else{
_f.action = "add_mail.asp";
_f.submit();
	  }	  
}

function search_ok_left()
{
var err = "";
var _f=document.f_left;

if ((_f.p_cat.value == "") && (_f.p_brand.value == "")) 
 { 
	err += "Please specify a Category or a Brand !!";
 } 
	
if (err != "") {
 alert(' ' +err);
 }else{
_f.action = "products_list2.asp";
_f.submit();
 }
}

function fastSearch()
{
var err = "";
var _f=document.f_left;

if (_f.txt_fastSearch.value == "")
 { 
	err += "Please Fill in a value !!";
 } 
	
if (err != "") {
 alert(' ' +err);
 }else{
_f.HD_comingFrom.value = "fastsearch";
_f.action = "products_list2.asp";
_f.submit();
 }
}	


function search_ok_right()
	{
var err = "";
var _r=document.r_right;

if ((_r.cat_ar.value == "") && (_r.p_brand_ar.value == "")) 
 { 
	err += "Please specify a Category or a Brand !!";
 } 
	
if (err != "") {
 alert(' ' +err);
 }else{
_r.action = "products_list2.asp";
_r.submit();
 }
	}
	

function search_ok_left_GIU()
{
var err = "";
var _f=document.f_left;

if ((_f.p_cat.value == "") && (_f.p_brand.value == "")) 
 { 
	err += "Please specify a Category or a Brand !!";
 } 
	
if (err != "") {
 alert(' ' +err);
 }else{
_f.action = "GIU_products_list2.asp";
_f.submit();
 }
}

function fastSearch_GIU()
{
var err = "";
var _f=document.f_left;

if (_f.txt_fastSearch.value == "")
 { 
	err += "Please Fill in a value !!";
 } 
	
if (err != "") {
 alert(' ' +err);
 }else{
_f.HD_comingFrom.value = "fastsearch";
_f.action = "GIU_products_list2.asp";
_f.submit();
 }
}	


function search_ok_right_GIU()
	{
var err = "";
var _r=document.r_right;

if ((_r.cat_ar.value == "") && (_r.p_brand_ar.value == "")) 
 { 
	err += "Please specify a Category or a Brand !!";
 } 
	
if (err != "") {
 alert(' ' +err);
 }else{
_r.action = "GIU_products_list2.asp";
_r.submit();
 }
	}

//////////////////////
function fixInnerWidth()
{ 

 if (self.innerWidth) 
        { 
                frameWidth = self.innerWidth; 
                frameHeight = self.innerHeight; 
        } 
        else if (document.documentElement && 
document.documentElement.clientWidth) 
        { 
                frameWidth = document.documentElement.clientWidth; 
                frameHeight = document.documentElement.clientHeight; 
        } 
        else if (document.body) 
        { 
                frameWidth = document.body.clientWidth; 
                frameHeight = document.body.clientHeight; 
        } 
		else
		{
		 		//alert('final else');
		}
        //alert(frameWidth);
		var myLeft1="";
       // alert('width: '+ frameWidth);
        myLeft1=((frameWidth - 840) / 2) + 166;    
        //alert(myLeft); 
		document.getElementById('L_Travelling').style.left=myLeft1;		
		document.getElementById('L_Luxury').style.left=myLeft1;		
		document.getElementById('L_AudioSystems').style.left=myLeft1;		
		document.getElementById('L_BabyLine').style.left=myLeft1;		
		document.getElementById('L_Cameras').style.left=myLeft1;		
		document.getElementById('L_Communications').style.left=myLeft1;	
		document.getElementById('L_Computers').style.left=myLeft1;		
		document.getElementById('L_PrintersScanners').style.left=myLeft1;	
		document.getElementById('L_Laptops').style.left=myLeft1;		
		document.getElementById('L_CoolingHeating').style.left=myLeft1;
		
		if (document.getElementById('L_Furnitures')) 
		    {
			document.getElementById('L_Furnitures').style.left=myLeft1;
			}
				
		document.getElementById('L_GamesToys').style.left=myLeft1;	
		document.getElementById('L_HomeCinema').style.left=myLeft1;		
		document.getElementById('L_KitchenAppliances').style.left=myLeft1;
		document.getElementById('L_HouseHolds').style.left=myLeft1;		
		document.getElementById('L_MusicInstruments').style.left=myLeft1;	
		document.getElementById('L_OfficeEquipments').style.left=myLeft1;		
		document.getElementById('L_PersonalCare').style.left=myLeft1;
		document.getElementById('L_SportsIndoor').style.left=myLeft1;		
		document.getElementById('L_SportsOutdoor').style.left=myLeft1;	
		document.getElementById('L_PlasmaTv').style.left=myLeft1;		
		document.getElementById('L_LcdTv').style.left=myLeft1;
		document.getElementById('L_Televisions').style.left=myLeft1;		
		//document.getElementById('L_Books').style.left=myLeft1;	
		//document.getElementById('L_Movies').style.left=myLeft1;	
		document.getElementById('L_Visual').style.left=myLeft1;	

}


//////////////////////

	  
function fixDivPosition() 
    {   
        var myLeft="";
        //alert('width: '+ screen.width);
        myLeft=((screen.width - 840) / 2) + 166;    
     //   alert(myLeft);    
		document.getElementById('L_Travelling').style.left=myLeft;		
		document.getElementById('L_Luxury').style.left=myLeft;		
		document.getElementById('L_AudioSystems').style.left=myLeft;		
		document.getElementById('L_BabyLine').style.left=myLeft;		
		document.getElementById('L_Cameras').style.left=myLeft;		
		document.getElementById('L_Communications').style.left=myLeft;	
		document.getElementById('L_Computers').style.left=myLeft;		
		document.getElementById('L_PrintersScanners').style.left=myLeft;	
		document.getElementById('L_Laptops').style.left=myLeft;		
		document.getElementById('L_CoolingHeating').style.left=myLeft;
		
		if (document.getElementById('L_Furnitures')) 
		    {
			document.getElementById('L_Furnitures').style.left=myLeft;
			}
			
		document.getElementById('L_GamesToys').style.left=myLeft;	
		document.getElementById('L_HomeCinema').style.left=myLeft;		
		document.getElementById('L_KitchenAppliances').style.left=myLeft;
		document.getElementById('L_HouseHolds').style.left=myLeft;		
		document.getElementById('L_MusicInstruments').style.left=myLeft;	
		document.getElementById('L_OfficeEquipments').style.left=myLeft;		
		document.getElementById('L_PersonalCare').style.left=myLeft;
		document.getElementById('L_SportsIndoor').style.left=myLeft;		
		document.getElementById('L_SportsOutdoor').style.left=myLeft;	
		document.getElementById('L_PlasmaTv').style.left=myLeft;		
		document.getElementById('L_LcdTv').style.left=myLeft;
		document.getElementById('L_Televisions').style.left=myLeft;		
		//document.getElementById('L_Books').style.left=myLeft;	
		//document.getElementById('L_Movies').style.left=myLeft;	
		document.getElementById('L_Visual').style.left=myLeft;	
    }

