var var9b_up3 = new Image();
var9b_up3.src = 'http://lib1.store.vip.sc5.yahoo.com/lib/cctvcameras/orderbuttonon.gif';
var var9b_over3 = new Image();
var9b_over3.src ='http://lib1.store.vip.sc5.yahoo.com/lib/cctvcameras/orderbuttonoff.gif';

var var9b_enlargeup3 = new Image();
var9b_enlargeup3.src = 'http://lib1.store.vip.sc5.yahoo.com/lib/cctvcameras/enlargeon.gif';
var var9b_enlargeover3 = new Image();
var9b_enlargeover3.src ='http://lib1.store.vip.sc5.yahoo.com/lib/cctvcameras/enlargeoff.gif';


function movepic_new (img_obj, img_src)
{
img_obj.src = img_src.src;
return true;
}







img1 = new Image();	
img1.src = "http://lib1.store.vip.sc5.yahoo.com/lib/cctvcameras/linkon.gif";
 img2 = new Image();	
img2.src = "http://lib1.store.vip.sc5.yahoo.com/lib/cctvcameras/linkoff.gif";

var i=1
function changeBGhome(el)
{ele=document.getElementById(el)
ele.background=img1.src
}
function changeBGhomeon(el)
{ele=document.getElementById(el)
ele.background=img2.src
}




function jumplink(acs) {
loc=document.acsform.acslist.options
    [document.acsform.acslist.selectedIndex].value;
location.href = loc
}

function echeck(str) {

	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   alert("Invalid E-mail ID")
	   return false
		}
if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("Invalid E-mail ID")
	   return false
	}
if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || 
str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}
 if (str.indexOf(at,(lat+1))!=-1){
    alert("Invalid E-mail ID")
	    return false
	 }
 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.theForm.txtEmail
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }

function CaricaFoto(img, name, wid, hi){
  foto1= new Image();
  foto1.src=(img);
  viewFotos(img, name, wid, hi);
}

function viewFotos(img, name, wid, hi){

 features = 
    "toolbar=no,location=no,directories=no,status=no,menubar=no," +
    "scrollbars=yes,resizable=yes,width=" + wid + ",height=" + hi;
 dlg = window.open ("","Details",features);
 dlg.document.write("<html><head><title>" + name + " Zoom</title></head>");
 dlg.document.write("<body bgcolor=white><center>");
 dlg.document.write("<table width=100% height=100%>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<b><font size=4 face=Arial>" + name + "</font></b><br><br>");
 dlg.document.write("<img src=" + img + ">");
 dlg.document.write("</td></tr>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<font size=1 face=Arial>Click to close</font></a>");
 dlg.document.write("</td></tr>");
 dlg.document.write("</table></body></html>");
}






