<!--
document.oncontextmenu = new Function("event.returnValue=false");

var ll=1;var mm=1; var ss=1;var sil=1;
function go1(id1,val1){
sil=2;
switch(id1){
case 1:ll=ll+val1;
if(ll>6)ll=1;
if(ll<1)ll=6; 
document.images['i1'].src="img/L"+ll+".jpg";
break;

case 2:mm=mm+val1;
if(mm>6)mm=1;
if(mm<1)mm=6; 
document.images['i2'].src="img/M"+mm+".jpg";
break;

case 3:ss=ss+1;
if(ss>6)ss=1;
if(ss<1)ss=6; 
document.images['i3'].src="img/S"+ss+".jpg";
break;
}}

function chkform() {
	if (document.login.username.value == "" ) {
		alert("Please enter User ID !");
		document.login.username.focus();
		return false;
	}
	if (document.login.password.value == "" ) {
		alert("Please enter Password !");
		document.login.password.focus();
		return false;
	}
	return true;
}

function id_search() {
	ref = "getpass.asp";
	var window_left = (screen.width-332)/2; 
	var window_top = (screen.height-150)/2; 
	window.open(ref,"search",'width=332,height=150,status=no, scrollbars=no, top=' + window_top + ',left=' + window_left + ''); 
}

function frmSearchSubmit() {
	if (document.frmSearch.key.value.length == 0) {
			document.frmSearch.key.focus();
		return false;	}
	else {	return;	}
}

function atoc(theForm){
theForm.addall[0].disabled=true;
theForm.addall[1].disabled=true;
theForm.submit();
}
function opc(id,num){
	url="tocart.asp?act=add";
	url+="&picid="+id;
	url+="&shopnum="+num;
	op=window.open(url,"tocart","resizable=0,scrollbars=1,status=0,menubar=no,toolbar=no,location=no,left=100,top=20,width=600,height=200");
}
function openid(thispic){ 
window.open(thispic,"opid","resizable=0,scrollbars=0,status=no,menubar=no,toolbar=no,location=no,left=50,top=10,width=500,height=420,menu=no");
return false;
}
function open1(){ 
window.open("order1.asp","order1","resizable=0,scrollbars=0,status=no,menubar=no,toolbar=no,location=no,left=10,top=10,width=750,height=520,menu=no");
return false;
}

function op_pwd(para){
	window.open(para,'pwd','width=280,height=150,scrollbars=no,top=200,left=200');
	return false;
}

function open2(thispic){ 
window.open(thispic,"opid","resizable=0,scrollbars=0,status=no,menubar=no,toolbar=no,location=no,left=100,top=100,width=500,height=500,menu=no");
return false;
}

function tosubmit(theForm,acts){
if (acts==1){location.href="tosubmit.asp?action=1&sid="+acts}
else{if (confirm("Do you continue? ")){theForm.action.value=acts;theForm.submit();}
}
}
function toreset(theForm,acts){
if (confirm("Are Delete All Items?")){
theForm.action.value=acts;
theForm.submit();
return true;
}
return false;
}
function selall(field){
if (field.length>0){
for (i = 0; i < field.length; i++) {
if (field[i].checked == true) field[i].checked = false;
else field[i].checked = true;
}}
else{
if (field.checked==true) field.checked=false;
else field.checked=true;}
}

//-->