
function writeFlash (flashID, flashMovie, width, height) {

	var t ="";
	t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<embed src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="https://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
	document.write (t);
}

<!-- START CHECK BROWSER COMPATIBLITY -->

var browser     = '';
var version     = '';
var entrance    = '';
var cond        = '';
// BROWSER?
if (browser == ''){
if (navigator.appName.indexOf('Microsoft') != -1)
browser = 'IE'
else if (navigator.appName.indexOf('Netscape') != -1)
browser = 'Netscape'
else browser = 'NN';
}
// VERSION?
if (version == ''){
version= navigator.appVersion;
paren = version.indexOf('(');
whole_version = navigator.appVersion.substring(0,paren-1);
version         = parseFloat(whole_version);
}
// BROWSER & VERSION
if (browser == 'IE' && version >= 4) entrance = 'yes';
if (browser == 'IE' && version < 4) entrance = 'no';
if (browser == 'Netscape' && version >= 2.02) entrance = 'yes';
if (browser == 'Netscape' && version < 2.02) entrance = 'no';



<!-- END CHECK BROWSER COMPATIBLITY -->



<!-- START MOUSEOVER -->
 
function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}
onload=init;
 
<!-- END MOUSEOVER -->



<!-- START MAILER FORM CHECK -->
function check_mailform() {

if (document.contact.first_name.value ==""){
			window.alert("נא להזין שם פרטי");
			document.contact.first_name.focus();
			return false;
	}
	else {
		if (document.contact.email.value ==""){
					window.alert("נא להזין דואר אלקטרוני");		
					document.contact.email.focus();
					return false;
			
		}
 else{
  document.contact.action = "MailSend.asp";
	document.contact.submit();
		}
		}				
}
	

function clear_mailform(){
	document.contact.reset();

}

<!-- END MAILER FORM CHECK -->







<!-- START MEMBERS FORM CHECK -->
function checkmembersform() {

	if (document.join.first_name.value ==""){
			window.alert("נא להזין שם פרטי");
			document.join.first_name.focus();
			return false;
	}
	if (document.join.last_name.value ==""){
			window.alert("נא להזין שם משפחה");
			document.join.last_name.focus();
			return false;
	        }
	
	if (document.join.city.value ==""){
				window.alert("נא להזין עיר");
				document.join.city.focus();
				return false;
			}
		
	if (document.join.email.value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.join.email.focus();
				return false;
			}
			
	if (document.join.sex.selectedIndex ==-1){
						window.alert("נא לבחור מין בחרת מין");
						document.join.sex.focus();
						return false;
					}
document.join.submit();
	
	
}
function clearmembersform(){
	document.join.reset();

}
<!-- END MEMBERS FORM CHECK -->





<!-- START WINDOW POPUP -->
var win = null;
var win1 = null;  



function PopMashkanta(){
LeftPosition =  0;
TopPosition =  0;
mypage="Calculators.asp"
w=600
h=400
myname="Mashkanta"
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}



function NewWindow(mypage,myname,w,h,scroll){
LeftPosition =  0;
TopPosition =  0;

settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function NewWindow1(mypage,page1,myname,w,h,scroll){
LeftPosition =  0;
TopPosition =  0;

settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';


settings1 ='height=320,width=484,top=0,left=0,scrollbars=no,resizable';

win1 = window.open(page1,'name1',settings);

}
<!-- END WINDOW POPUP -->







<!-- START ONMOUSOVER SHOW BIG PICTURE -->

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseFloat(pageYOffset) : parseFloat(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()" style="cursor:hand; color:ffffff" >סגור חלון</span> </div><img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseFloat(crossobj.style.left)
tempy=parseFloat(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

<!-- START ONMOUSOVER SHOW BIG PICTURE -->


<!-- START MOVIE -->

var theURL1 = 'Video/mov.asp';
var width1=330;
var height1=310;
   
function mov() {
newWindow = window.open(theURL1,'newWindow','toolbar=no,menubar=no,resizable=yes,scrollbars=no,status=no,location=no,width='+width1+',height='+height1);
}
<!-- END MOVIE -->




function showProjectDetails(j){
  object=document.all.viewProjectDetails(j);
  object2=document.all.viewProjectContacts(j);
if (object.style.display=='none')
   { 

  object.style.display='';
   object2.style.display='none';
  
   }
else
   { 
    object.style.display='none';
	}  
}	

function showProjectContact(j){
  object=document.all.viewProjectContacts(j);
   object2=document.all.viewProjectDetails(j);
 
if (object.style.display=='none')
   { 

 
  object.style.display='';
   object2.style.display='none';
  
  
   }
else
   { 
      object.style.display='none';
	}  
}	





function showUnitContact(){
  object=document.all.viewUnitContacts;
 
if (object.style.display=='none')
   { 
  object.style.display='';
   }
else
   { 
      object.style.display='none';
	}  
}	






function showUnitContactSales(j){
  object=document.all.viewUnitContactsSales(j);
if (object.style.display=='none')
   { 

  object.style.display='';
   }
else
   { 
    object.style.display='none';
	}  
}	

function showProjectContact(j){
  object=document.all.viewProjectContacts(j);
   object2=document.all.viewProjectDetails(j);
 
if (object.style.display=='none')
   { 

 
  object.style.display='';
   object2.style.display='none';
  
  
   }
else
   { 
      object.style.display='none';
	}  
}	



function Change(imgName) {
imgOn =document.form.Pictures.value;
document[imgName].src = imgOn;
}

<!------------------- Project Form ---------------->
function CheckFormProject(j) {

	if (document.form.FirstName(j).value ==""){
			window.alert("נא להזין שם פרטי");
			document.form.FirstName(j).focus();
			return false;
	}
	if (document.form.LastName(j).value ==""){
			window.alert("נא להזין שם משפחה");
			document.form.LastName(j).focus();
			return false;
	        }
		
	if (document.form.Email(j).value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.form.Email(j).focus();
				return false;
			}
	
	
	document.form.FirstNameToSend.value=document.form.FirstName(j).value;
	document.form.LastNameToSend.value=document.form.LastName(j).value;
	document.form.CityToSend.value=document.form.City(j).value;
	document.form.TelephoneToSend.value=document.form.Telephone(j).value;
	document.form.CellToSend.value=document.form.Cell(j).value;
	document.form.EmailToSend.value=document.form.Email(j).value;
	document.form.CommentsToSend.value=document.form.Comments(j).value;
	document.form.Project_IDToSend.value=document.form.Project_ID(j).value;
	
			
	document.form.submit();
	
	
}

<!------------------- Project  Form End ---------------->

<!------------------- Unit  Form ---------------->
function CheckFormUnit() {

	if (document.form.FirstName.value ==""){
			window.alert("נא להזין שם פרטי");
			document.form.FirstName.focus();
			return false;
	}
	if (document.form.LastName.value ==""){
			window.alert("נא להזין שם משפחה");
			document.form.LastName.focus();
			return false;
	        }
		
	if (document.form.Email.value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.form.Email.focus();
				return false;
			}
			
	document.form.submit();
	
	
}

<!------------------- Unit Form End ---------------->





<!------------------- UnitSales Form ---------------->
function CheckFormUnitSales(j) {

	if (document.form.FirstName(j).value ==""){
			window.alert("נא להזין שם פרטי");
			document.form.FirstName(j).focus();
			return false;
	}
	if (document.form.LastName(j).value ==""){
			window.alert("נא להזין שם משפחה");
			document.form.LastName(j).focus();
			return false;
	        }
		
	if (document.form.Email(j).value ==""){
				window.alert("נא להזין דואר אלקטרוני");
				document.form.Email(j).focus();
				return false;
			}
	
	
	document.form.FirstNameToSend.value=document.form.FirstName(j).value;
	document.form.LastNameToSend.value=document.form.LastName(j).value;
	document.form.CityToSend.value=document.form.City(j).value;
	document.form.TelephoneToSend.value=document.form.Telephone(j).value;
	document.form.CellToSend.value=document.form.Cell(j).value;
	document.form.EmailToSend.value=document.form.Email(j).value;
	document.form.CommentsToSend.value=document.form.Comments(j).value;
	document.form.Project_IDToSend.value=document.form.Project_ID(j).value;
	document.form.Unit_IDToSend.value=document.form.Unit_ID(j).value;
			
	document.form.submit();
	
	
}

<!------------------- UnitSales  Form End ---------------->

function ClearForm(){
	document.form.reset();

}








<!------------------------------------ basket -------------------------->

function MinusQuan(productId,price,points,weight)
{

minquan=0
var prefixProductQuantity="ProductQuantity"+productId
var prefixTotalProductprice="TotalProductprice"+productId

var prefixTotalProductPointsNo="TotalProductPointsNo"+productId
var prefixTotalProductWeight="TotalProductWeight"+productId
var currentQuan=0

for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name == prefixProductQuantity)
	    {
      	currentQuan=element.value-1
		if (currentQuan<minquan){
		
		window.alert("Please, insert value>="+minquan)
		return false;
		  }
		  else
		element.value=currentQuan
	     }
  	}

	
	for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name == prefixTotalProductprice) {
      
		TotalProductprice=parseFloat(currentQuan*price)
          element.value=Math.round(TotalProductprice*100)/100;
		element.style.width=parseFloat(element.value.length*7)
      totalOrderPrice = parseFloat(document.tofes.totalOrderPrice.value-price)
        document.tofes.totalOrderPrice.value=Math.round(totalOrderPrice*100)/100;
		 document.tofes.totalOrderPrice.style.width=parseFloat( document.tofes.totalOrderPrice.value.length*8)
			}
      if (element.name == prefixTotalProductPointsNo) {        
            element.value=parseFloat(currentQuan*points)
            element.style.width=parseFloat(element.value.length*7)
		         document.tofes.totalOrderPointsNo.value=parseFloat(document.tofes.totalOrderPointsNo.value-points)
              document.tofes.totalOrderPointsNo.style.width=parseFloat( document.tofes.totalOrderPointsNo.value.length*8)
		    }
            
          
            
             if (element.name == prefixTotalProductWeight) { 
               OrderWeight=parseFloat(currentQuan*weight)
                 element.value=Math.round(OrderWeight*100)/100;
                element.style.width=parseFloat(element.value.length*7)
                 totalOrderWeight=  parseFloat(document.tofes.totalOrderWeight.value-weight)
		         document.tofes.totalOrderWeight.value=Math.round(totalOrderWeight*100)/100;
                document.tofes.totalOrderWeight.style.width=parseFloat( document.tofes.totalOrderWeight.value.length*8)
		 
            }   
  	}

   
	
	

	}

function PlusQuan(productId,price,points,weight)
{
var prefixProductQuantity="ProductQuantity"+productId
var prefixTotalProductprice="TotalProductprice"+productId
var prefixTotalProductPointsNo="TotalProductPointsNo"+productId
var prefixTotalProductWeight="TotalProductWeight"+productId
var currentQuan=0

for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name == prefixProductQuantity)
	    {
        currentQuan= element.value
		currentQuan++
		element.value=currentQuan
	     }
  	}

	
	for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name == prefixTotalProductprice) {
      
		TotalProductprice=parseFloat(currentQuan*price)
           element.value=Math.round(TotalProductprice*100)/100;
        element.style.width=parseFloat(element.value.length*7)
        
        totalOrderPrice=parseFloat(document.tofes.totalOrderPrice.value)+parseFloat(price)
		 document.tofes.totalOrderPrice.value=Math.round(totalOrderPrice*100)/100;
         document.tofes.totalOrderPrice.style.width=parseFloat( document.tofes.totalOrderPrice.value.length*8)
		 
		
		}
         if (element.name == prefixTotalProductPointsNo) {        
            element.value=parseFloat(currentQuan*points)
            element.style.width=parseFloat(element.value.length*7)
		   document.tofes.totalOrderPointsNo.value=parseFloat(document.tofes.totalOrderPointsNo.value)+parseFloat(points)
            document.tofes.totalOrderPointsNo.style.width=parseFloat( document.tofes.totalOrderPointsNo.value.length*8)
		 
            }
            
           if (element.name == prefixTotalProductWeight) { 
           OrderWeight=parseFloat(currentQuan*weight)
            element.value=Math.round(OrderWeight*100)/100;
            element.style.width=parseFloat(element.value.length*7)
            
             totalOrderWeight=parseFloat(document.tofes.totalOrderWeight.value)+parseFloat(weight)
		     document.tofes.totalOrderWeight.value=Math.round(totalOrderWeight*100)/100;
              document.tofes.totalOrderWeight.style.width=parseFloat( document.tofes.totalOrderWeight.value.length*8)
		 
            }   
  	}


	   
}	





function ChangeQuan(productId,price,points,weight)
{

minquan=0
var prefixProductQuantity="ProductQuantity"+productId

var prefixTotalProductpriceAll="TotalProductprice"
var prefixTotalProductprice="TotalProductprice"+productId

var prefixtotalProductPointsNoAll="TotalProductPointsNo"
var prefixTotalProductPointsNo="TotalProductPointsNo"+productId

var  prefixTotalProductWeightAll="TotalProductWeight"
var prefixTotalProductWeight="TotalProductWeight"+productId



var currentQuan=0
var totalOrderPrice=0
var totalOrderPointsNo=0
var totalOrderWeight=0
for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name == prefixProductQuantity)
	    {
      	currentQuan=element.value
		}
  	}
for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name == prefixTotalProductprice) {
      
		TotalProductprice=parseFloat(currentQuan*price)
         element.value=Math.round(TotalProductprice*100)/100;
		element.style.width=parseFloat(element.value.length*7)
    	}
        
         if (element.name == prefixTotalProductPointsNo) {
      
		element.value=parseFloat(currentQuan*points)
		element.style.width=parseFloat(element.value.length*7)
    	}
        if (element.name == prefixTotalProductWeight) {
        OrderWeight=parseFloat(currentQuan*weight)
        element.value=Math.round(OrderWeight*100)/100;
		
		element.style.width=parseFloat(element.value.length*7)
    	}
        
  	}


for (i=0; i<document.tofes.elements.length; i++) {
    element = document.tofes.elements[i];
    if (element.name.substring(0,17) == prefixTotalProductpriceAll) {
	
     	  totalOrderPrice =parseFloat(totalOrderPrice)+parseFloat(element.value) 
          totalOrderPrice=Math.round(totalOrderPrice*100)/100;
        
	 	}
     if (element.name.substring(0,20) == prefixtotalProductPointsNoAll) {
	 	  totalOrderPointsNo =parseFloat(totalOrderPointsNo)+parseFloat(element.value) 
        
	 	}
         
        if (element.name.substring(0,18) == prefixTotalProductWeightAll) {
        
       
        
	 	  totalOrderWeight =parseFloat(totalOrderWeight)+parseFloat(element.value) 
          totalOrderWeight=Math.round(totalOrderWeight*100)/100;
        
	 	}
           
  	}

   
 
 	        document.tofes.totalOrderPrice.value=totalOrderPrice
            document.tofes.totalOrderPrice.style.width=parseFloat( document.tofes.totalOrderPrice.value.length*8)
		 
            
              document.tofes.totalOrderPointsNo.value=totalOrderPointsNo  
          document.tofes.totalOrderPointsNo.style.width=parseFloat( document.tofes.totalOrderPointsNo.value.length*8)
		
               document.tofes.totalOrderWeight.value=totalOrderWeight
          document.tofes.totalOrderWeight.style.width=parseFloat( document.tofes.totalOrderWeight.value.length*8)
		   
}

function SelectedPoints()
{


prefix_Master_totalOrderPrice_shipping= "Master_totalOrderPrice_shipping"
prefixtotalOrderMainPrice_shipping="totalOrderMainPrice_shipping"
 client_points_count= document.submitorder.client_points_count.value
 totalOrderPriceMaster= document.submitorder.totalOrderPriceMaster.value
 OrderPriceTottallyMaster= document.submitorder.OrderPriceTottallyMaster.value
 totalOrderPrice=parseFloat(totalOrderPriceMaster-client_points_count)

 
  document.submitorder.totalOrderPrice.value=Math.round(totalOrderPrice*100)/100;
 OrderPriceTottally=parseFloat(OrderPriceTottallyMaster-client_points_count)
    document.submitorder.OrderPriceTottally.value=Math.round(OrderPriceTottally*100)/100;
   
 
    DiffOrderPriceTottallyMaster= document.submitorder.DiffOrderPriceTottallyMaster.value
    DiffOrderTottally=parseFloat(DiffOrderPriceTottallyMaster)+parseFloat(client_points_count)
    document.submitorder.DiffOrderPriceTottally.value=Math.round(DiffOrderTottally*100)/100;
   document.submitorder.DiffOrderPriceTottally.style.width=parseFloat( document.submitorder.DiffOrderPriceTottally.value.length*10)
   
  
   for (i=0; i<document.submitorder.elements.length; i++) {
    element = document.submitorder.elements[i];
     
   
     if (element.name.substring(0,31) == prefix_Master_totalOrderPrice_shipping) {
	   
         points_value =element.value
     	  points_count =eval(points_value-client_points_count)
         
     	}
  
    
        
   if (element.name.substring(0,28) == prefixtotalOrderMainPrice_shipping) {
	
     	  element.value =points_count
      }
      }
  
  
}



function SelectedPointsMinPrice()
{



 client_points_count= document.submitorder.client_points_count.value
 totalOrderPriceMaster= document.submitorder.totalOrderPriceMaster.value
 
 totalOrderPrice=parseFloat(totalOrderPriceMaster-client_points_count)

  document.submitorder.totalOrderPrice.value=Math.round(totalOrderPrice*100)/100;
  OrderPriceTottally=parseFloat(totalOrderPriceMaster-client_points_count)
   document.submitorder.OrderPriceTottally.value=Math.round(OrderPriceTottally*100)/100;
   
  DiffOrderPriceTottallyMaster= document.submitorder.DiffOrderPriceTottallyMaster.value
    DiffOrderTottally=parseFloat(DiffOrderPriceTottallyMaster)+parseFloat(client_points_count)
    document.submitorder.DiffOrderPriceTottally.value=Math.round(DiffOrderTottally*100)/100;
     document.submitorder.DiffOrderPriceTottally.style.width=parseFloat( document.submitorder.DiffOrderPriceTottally.value.length*10)
   
  
}


function SetShipping(id,j){
shippingname="totalOrderMainPrice_shipping_"+id
	 Mastershippingname="Master_totalOrderPrice_shipping_"+id	
       
        if (document.getElementByName) {
			shippingnameObj = document.getElementByName(shippingname);
		} else if (document.all){
			shippingnameObj = document.all[shippingname];
		} else if (document.layers){
			shippingnameObj = document.layers[shippingname];
		}
         	 shipping=shippingnameObj.value;
        
        
         if (document.getElementByName) {
			MastershippingnameObj = document.getElementByName(Mastershippingname);
		} else if (document.all){
			MastershippingnameObj = document.all[Mastershippingname];
		} else if (document.layers){
			MastershippingnameObj = document.layers[Mastershippingname];
		}
         	 Mastershipping=MastershippingnameObj.value;
         
         
         
         
document.submitorder.OrderPriceTottally.value=Math.round(shipping*100)/100;
document.submitorder.OrderPriceTottallyMaster.value=Math.round(Mastershipping*100)/100;

 document.submitorder.OrderPriceTottally.style.width=parseFloat(document.submitorder.OrderPriceTottally.value.length*10)

}




function DeleteAll()
{
document.tofes.delupdate.value="delal";	
document.tofes.submit();

}

function SendBasket()
{
document.tofes.action="https://secure.icservice.co.il/rootspa/site/checkout.asp";	
document.tofes.submit();

}
function KeepBasket()
{
document.tofes.action="basket.asp?keep=yes";	
document.tofes.submit();

}
function ToLoggin()
{
document.tofes.action="OrderForm.asp";	
document.tofes.submit();

}


function SendOrder()
{
document.Order.submit();

}


function Loggin()
{
document.submitorder.action="checkout.asp";
document.submitorder.submit();

}

<!------------------------------------ basket end -------------------------->





<!------------------------------------ DHTML email validation script -------------------------->

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){
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    return false
		 }

 		 return true					
	}
<!------------------------------------ DHTML email validation script end -------------------------->



function showcommets(j){
  
 object=document.all.viewComments(j);
 
if (object.style.display=='none')
   { 

  object.style.display='';
 
  
   }
else
   { 
    object.style.display='none';
   
    }   
}	


<!------------------------------------ onlyDigits -------------------------->
function onlyDigits(e) {
var _ret = true;
if (window.event.keyCode < 46 || window.event.keyCode > 57) {
window.event.keyCode = 0;
_ret = false;
}
return (_ret); 
}
<!------------------------------------ onlyDigits  end -------------------------->


