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("YAVANI Jewels");
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;


function SubFrm(mCat)  {
   document.myfrm.method="post";
   switch(mCat) 
		{
			case 'aboutus':
			  document.myfrm.action="../slinks/aboutus.asp";
				document.myfrm.submit();
         		break;	
			case 'privacy':
			  document.myfrm.action="../slinks/privacy.asp";
				document.myfrm.submit();
         		break;
			case 'terms':
			  document.myfrm.action="../slinks/tou.asp";
				document.myfrm.submit();
         		break;
			case 'affiliate':
			  document.myfrm.action="../slinks/affiliate.asp";
				document.myfrm.submit();
         		break;
			case 'contactus':
			  document.myfrm.action="../slinks/contactus.asp";
				document.myfrm.submit();
         		break;
			case 'help':
			  document.myfrm.action="../slinks/help.asp";
				document.myfrm.submit();
         		break;	
			case 'shoppingcart':
			  document.myfrm.action="../saccount/shoppingcart.asp";
				document.myfrm.submit();
         		break;
			case 'myaccount':
			  document.myfrm.action="../saccount/myaccount.asp";
				document.myfrm.submit();
         		break;	
			case 'home':
			  document.myfrm.action="../syavani.asp";
				document.myfrm.submit();
         		break;	
			case 'C01':
			 document.myfrm.maincatid.value = "C01"		
			  document.myfrm.action="../sproducts/prodlist.asp";
			  document.myfrm.submit();
         	  break;
			case 'C02':
			 document.myfrm.maincatid.value = "C02"		
			  document.myfrm.action="../sproducts/prodlist.asp";
			  document.myfrm.submit();
         	  break;  
			case 'C03':
			 document.myfrm.maincatid.value = "C03"		
			  document.myfrm.action="../sproducts/prodlist.asp";
			  document.myfrm.submit();
         	  break;
			case 'C04':
			 document.myfrm.maincatid.value = "C04"		
			  document.myfrm.action="../sproducts/prodlist.asp";
			  document.myfrm.submit();
         	  break;
			case 'C05':
			 document.myfrm.maincatid.value = "C05"		
			  document.myfrm.action="../sproducts/prodlist.asp";
			  document.myfrm.submit();
         	  break;
			case 'C06':
			 document.myfrm.maincatid.value = "C06"		
			  document.myfrm.action="../sproducts/prodlist.asp";
			  document.myfrm.submit();
         	  break;
			case 'jewelcatalog':
			  document.myfrm.action="../slinks/jewelcatalog.asp";
			  document.myfrm.submit();
         	  break;
		}		
   
   }
   
function HrefSub(mCat)
	{
		SubFrm(mCat);
	}



function popup1(ImageId,flr,windowName) 
{
	var str= "popup.asp?" + ImageId + ',' + flr;
	//alert(str);
//	if (parseFloat(width)>800 && parseFloat(height)>550)
//	{
//	    imagewin=window.open(str,windowName,"scrollbars=Yes,width=790,height=510,left=0,top=0");
//	}
//	else if (parseFloat(width)<800 && parseFloat(height)>550)
//	{
//		width=parseFloat(width)+20;
//	    imagewin=window.open(str,windowName,'scrollbars=Yes,width=' + width + '+20,height=510,left=0,top=0');
//	}
//	else if (parseFloat(width)>800 && parseFloat(height)<550)
//	{
//		height=parseFloat(height)+20;
//	    imagewin=window.open(str,windowName,"scrollbars=Yes,width=790,height=' +height + ',left=0,top=0");
//	}
//	else
	{
	    imagewin=window.open(str,windowName,"scrollbars=Yes,width=620,left=0,top=0");

//			if (window.screen && document.layers) 
//			{
//				window.outerWidth = width;
//				window.outerHeight = height;
//			}
	}
}

