//search rollovers
function sMi(objImg) {
	objImg.src='/images/go_on.gif';
}
function sMo(objImg) {
	objImg.src='/images/go.gif';
}

//print rollover
function pMo(objImg) {
	objImg.src='/images/pr3.gif';
}

function pMi(objImg) {
	objImg.src='/images/pr3_out.gif';
}

function pdvShow() {
	try {
		document.all.pdv1.style.visibility='visible';
		}
	catch(err) {}
}

function pdvHide() {
	try {
		document.all.pdv1.style.visibility='hidden';
		}
	catch(err) {}
}

var arrLangWords = ["en",["Would you like the web page to be automatically \n readjusted to be printer-friendly","The next page that you see is designed to be a printer-friendly page. \nSimply print it from your browser just as you would any other page, and you\'ll have a handy info pack to take with you. \n\nThe page is designed to print on an A4 piece of paper of portrait orientation.","Hover mouse over image to view larger version"],
					"fr",["vous aimez le page Web pour être automatiquement \n rajustés pour être imprimeur-amical","La prochaine page que vous voyez est conçue pour être une page imprimante-amicale. copie de \nSimply elle de votre browser juste comme vous n'importe quelle autre page, et you\'ll ont un paquet maniable d'information à prendre avec que vous la page de \n\nThe est conçue pour imprimer sur un morceau A4 de papier d'orientation de verticale.",""],
					"de",["Wurden Sie mögen das 4web page automatisch nachreguliert \n werden, um Drucker-freundlich zu sein","Die folgende Seite, die Sie sehen, wird entworfen, um eine Drucker-freundliche Seite zu sein. \nSimply-Druck hat sie von Ihrer Datenbanksuchroutine gerade da Sie jede mögliche andere Seite wurden und you\'ll einen handlichen INFO-Satz zum Nehmen mit, das Ihnen, wird \n\nThe-Seite entworfen, um auf einem Papierstreifen A4 der Portraitlagebestimmung zu drucken.",""],
					"it",["Desiderate che la pagina venga visulizzata \n automaticamente in versione stampabile","La prossima pagina che visualizzerete è stampabile.Stampatela dal browser come qualsiasi altra pagina ed avrete un pacchetto di informazioni a portata di mano. La stampa è in formato A4, orientamento verticale.","Passare con il mouse sopra l'immagine per ingrandirla"],
					"es",["usted tiene gusto del Web page para ser reajustado \n automáticamente para ser impresora-amistoso","La paginación siguiente que usted ve se diseña para ser una paginación impresora-cómoda. impresión de \nSimply de su browser apenas pues usted cualquier otra paginación, y you\'ll tiene un paquete práctico del Info a tomar con que usted la paginación de \n\nThe se diseña para imprimir en un pedazo A4 de papel de la orientación del retrato. ",""],
					"pt",["você gostaria de ter a Web page reajustada automaticamente \n para uma perfeita impressão?","A página seguinte é um atalho para impressora. \nProceda a impressão da forma habitual e você terá um resumo das informações sempre à mão \n\nA página foi configurada para impressão em papel A4 na vertical.",""]
					]

//alert(arrLangWords[0])
function getLang(strLang,iSubLot,blnGetEN) {
	var sReturn = "", iAL,arrSub;
	try {
		for (iAL=0;iAL<arrLangWords.length;iAL=iAL+2) {
			if (arrLangWords[iAL] == strLang) {
				arrSub = arrLangWords[iAL+1];
				sReturn = arrSub[iSubLot];
			}
		}
		if (sReturn=="" && blnGetEN == 1) {
				arrSub = arrLangWords[1];
				sReturn = arrSub[iSubLot];
		}
	}
	catch(err) 
		{}
	return sReturn;
}

//document.write(getLang("en",2,1)+"<br>");

function bfPrint(){
	if(!isPrint && IE4) {
		try {
			var blnC, strMsg
			strMsg = getLang(strArrLang,0,1);
			blnC = confirm(strMsg+"?") 
			if(blnC) {
				document.bgColor="white";
				document.body.style.background='';
				var da = document.all;
				da.tdL1.width=1;
				da.imgL1.width=1;
				da.tdM1.width=125;
				da.imgM1.width=125;
				da.sq1.style.visibility = 'hidden';
				da.sq2.style.visibility = 'hidden';
				}
			isPrint = true;
			//alert('Printing');
			}
		catch(err) 
			{
				//alert(err);
			}
			
		}
}
window.onbeforeprint=bfPrint

function cc(strLang) {
	try {			var strCheckOff = "en;fr;de;pt;es;";			if (strCheckOff.indexOf(strLang+";") != -1) 
				{				if(readCookie("lang") != strLang) saveCookie("lang",strLang,365); 				}		}
	catch(err) 
		{
			//alert(err);
		}
}function readCookie(name) {
		var nameEQ=name+"=";
		var ca=document.cookie.split(';');
		for(var i=0;i<ca.length;i++) {
			var c=ca[i];
			while (c.charAt(0)==' ') c=c.substring(1,c.length);
			if (c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	
function saveCookie(name,value,days) {
		if (days) {
			var date=new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires="; expires="+date.toGMTString();
		} 
		else expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
	
function sPrint() {
	alert(getLang(strArrLang,1,1));
	var sHREF = window.location.href
	if (sHREF.indexOf("/lang/") > 0) {
		sHREF = sHREF.split("/");
		if (sHREF.length == 9) {
			sHREF = "http://" + sHREF[2] + "/" + sHREF[5] + "/" + sHREF[8];
			}
		else {
			sHREF = "http://" + sHREF[2] + "/" + sHREF[5] + "/" + sHREF[6];
			}
		}
	document.frmlang.action = sHREF;
	document.frmlang.showprint.value=1;
	document.frmlang.submit();
	//return false;
	//bubbleEvent = false;
}
function langChange(objSelect) {
	try {		//langChange(this) //onlang select input
		var sHREF = window.location.href.split("?");
		document.frmlang.action = sHREF[0];
		document.frmlang.lang.value = objSelect.value;
		document.frmlang.submit();		}
	catch(err) 
		{
			//alert(err);
		}

}

function gotoF(objLink){
	try {		document.frmSearch.action=objLink.href;
		document.frmSearch.submit();
		return false;		}
	catch(err) 
		{
			//alert(err);
		}
}

function mhi(objTD) {
	try {			objTD.style.backgroundColor = "7894a4";
			objTD.children[0].style.color = "ffffff";
			//var ci = objTD.cellIndex;
			//ci = ci+1;
			//alert(ci);
			//popUp('HM_Menu'+ci,event);		}
	catch(err) 
		{
			//alert(err);
		}

}

function mho(objTD) {
	try {			var ci = objTD.cellIndex;
			ci = ci+1;
			//popDown('HM_Menu'+ci);

			if (ci != giMenuNumber) {
				objTD.style.backgroundColor = "";
				objTD.children[0].style.color = "666666";
				}		}
	catch(err) 
		{
			//alert(err);
		}

}


function setSSin(objS) {
	try {		objS.style.backgroundColor='7894a4';
		objS.style.color='ffffff';
		//if(objS.value=='Search')objS.value='';		}
	catch(err) 
		{
			//alert(err);
		}
}

function setSSout(objS) {
	try {		objS.style.backgroundColor='';
		objS.style.color='';
		//if(!objS.value)objS.value='Search';		}
	catch(err) 
		{
			//alert(err);
		}
}

function recRef() {
	var ref = document.referrer.split("/");
	var loc = document.location.href.split("/");
	ref = "http://" + ref[2];
	loc = "http://" + loc[2];
	if ( ref != loc && blnReferrer == false && document.referrer != "" ) {  
		document.frmlang.action = window.location.href;
		document.frmlang.lang.value = document.frmLangSelMenu.selectMenu.value;
		document.frmlang.referrer.value = document.referrer;
		document.frmlang.submit();
	}
}


function funcFind(strFind) {
	if(IE4) {
			var oRange, eB, sB
			var i, ii,  oRobj, sO, s, intF, ss;
			var tStart,tDate, tDiff, intNumFinds, intFindTimeOut
			
			sB = "<span style='BACKGROUND-COLOR: #76c5de;'>";
			eB = "</span>";
			oRange = document.body.all.sdiContent;
			i = 0;
			ii=0;
			intNumFinds=999;
			intFindTimeOut=500;
			tStart   = new Date();

			for (i = 0;i < oRange.all.length ;i++)
					{
					oRobj = oRange.all[i];
					if (oRobj.innerText != "" && oRobj.tagName != "SCRIPT" && oRobj.children.length == 0 && oRobj.innerHTML != "") {
						sO = oRobj.innerHTML;
						intF=0;
						do {
							ss= sO.toUpperCase();
							intF = ss.indexOf(strFind,intF);
							if (intF != -1) {
								sO = sO.substring(0,intF) + sB + sO.substring(intF,strFind.length+intF) + eB + sO.substring(intF+strFind.length,sO.length);
								intF = intF + sB.length + eB.length;
								i++;
								ii++;
									}
							//to stop over find
							if(ii>intNumFinds) {intF=-1;i=oRange.all.length;}
							}
						while (intF != -1);
						oRobj.innerHTML = sO;
						}
					tDate = new Date();
					tDiff = tDate.getTime() - tStart.getTime();
					if (tDiff>intFindTimeOut) i=999999;					
					}
			}
			//alert(i);
			//alert(tDiff);
   }


var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);

var win = window;    // window to search.
var n   = 0;

function findInPage(str) {
  var txt, i, found;
  if (str == "")
    return false;
  // Find next occurance of the given string on the page, wrap around to the
  // start of the page if necessary.
  if (NS4) {
    // Look for match starting at the current point. If not found, rewind
    // back to the first match.
    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;
    // If not found in either direction, give message.
    if (n == 0)
      alert("Not found.");
  }

  if (IE4) {
    txt = win.document.body.createTextRange();
    // Find the nth match from the top of the page.
    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }
    // If found, mark it and scroll it into view.
    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }
    // Otherwise, start over at the top of the page and find first match.
    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }
      // Not found anywhere, give message.
      //else
      //  alert("Not found.");
    }
  }
  return false;
}

function toggle_span(onjCL, strObjSpan) {
	var objSpan;
	eval("objSpan = document.all."+strObjSpan);
	//alert(objSpan);
	if (objSpan.style.display == 'none') {
		objSpan.style.display= '';
		onjCL.innerText = '-';
	}
	else {
		objSpan.style.display = 'none';
		onjCL.innerText = '+';
		}
	return false;
}
   
function hideBig(objDivHide) {
	objDivHide.style.visibility="hidden";
	fltDiv1.style.posTop = -500;
	fltDiv1.style.posLeft = -500;
}

function unhideBig() {
	fltDiv1.style.visibility = "";
	fltDiv2.style.visibility="hidden";
}
function getBig(objImage) {
	if(!IE4) {
		return false;
	}
	
	var imgSrc = objImage.src;
	imgSrc = imgSrc.replace(".jpg","_mso.jpg");
	imgSrc = imgSrc.replace(".gif","_mso.gif");
	if (fltDiv1.style.visibility == "hidden") {
		fltDiv1.innerHTML = "<img src='/images/close.gif' alt='close' onclick='unhideBig()'><br><a href='" + imgSrc + "' target='_blank'><img src='" + imgSrc + "' onload='unhideBig()' border='1'><\/a>";
		fltDiv1.style.posTop = getTop(objImage);
		fltDiv1.style.posLeft = getLeft(objImage);
		
		fltDiv2.style.posTop = fltDiv1.style.posTop+10;
		fltDiv2.style.posLeft = fltDiv1.style.posLeft;
		fltDiv2.style.visibility = "";
	}
	else {
		fltDiv1.style.visibility = "hidden";
	}
}

document.write("<div id='fltDiv1' name='fltDiv1' style='position: absolute;visibility: hidden;z-index: 2' onmouseout='hideBig(this)'><\/div>");
document.write("<div id='fltDiv2' name='fltDiv2' style='position: absolute;visibility: hidden;z-index: 2'>Loading...<\/div>");

function getTop(objGetIn) {
	var y=0;
	var objGet = objGetIn;
	
	while(objGet.offsetParent) {
		if (objGet.tagName == 'DIV') {
		}
		else {
			y+=objGet.offsetTop;
		}
		objGet=objGet.offsetParent;
	}
	y=y-10;
	return y;
}

function getLeft(objGetIn) {
	var x=0;
	var objGet = objGetIn;
	
	while(objGet.offsetParent) {
		if (objGet.tagName == 'DIV') {
		}
		else {
			x+=objGet.offsetLeft;
		}
		objGet=objGet.offsetParent;
	}
	//x=x-10;
	return x;
}

function setImgZoom() {
	var docImg,diLen,i,imgObj,SIO;


		var docImg = document.images;
		var diLen = docImg.length;
		for(i=0;i<diLen;i++) {
			imgObj=docImg[i];
			SIO = imgObj.onmouseover + "";
			if (SIO.indexOf("getBig(") != -1) {
				if (imgObj.readyState != "complete") {
					setTimeout("setImgZoom()",1000);
					return;
					}
				if (typeof eval("window." + imgObj.uniqueID + "_gbDive") == "undefined") {
					var div=document.createElement('div');
					div.id = imgObj.uniqueID + "_gbDive";
					div.name = imgObj.uniqueID + "_gbDive";
					div.innerHTML="<img src='/images/mag2.gif' style='filter: alpha(opacity=50)' alt=" + String.fromCharCode(34) + getLang(strArrLang,2,1) + String.fromCharCode(34) + ">";
					div.style.position = "absolute";
					div.style.zIndex = 1;
					div.style.posTop = getTop(imgObj)+imgObj.height;
					div.style.posLeft = getLeft(imgObj)+imgObj.width-10;
					div.style.visibility = "";
					document.body.appendChild(div);
					}
				}
			}
}

function validateForm(theForm){
  // return true if all is well
  var elArr=theForm.elements;
  var strErrMsg = "";
  var validator = "";

  
  for(var i=0;i<elArr.length-1;i++)
  {
	testElement = elArr[i];
	
	validator = testElement.getAttribute('validator');
	
	//if (isEmptyElement(testElement) && isRequired(testElement)){
	if((isEmptyElement(testElement)) && (testElement.className=="required"  || testElement.className=="invalid"))
	{
		try {strErrMsg = getErrMsg(testElement); } catch(e){strErrMsg="";};
		if (testElement.err_msg)
		{
			alert ("'" + strErrMsg + "' requires a value.");
		}
		else
		{
			alert (testElement.name + " requires a value.");
		}
		testElement.className="invalid";
		try
		{
			testElement.focus();
		}
		catch(e)
		{
			//if (e.number==-2146826178) {
			//	return true;
			//}
		}
		return false;
	}
	//else
	//{
	//	testElement.className="";
	//}
	if (!(isEmptyElement(testElement)) && !(isValid(testElement)))
	{
	    //alert(testElement.validator);
		try {strErrMsg = getErrMsg(testElement); } catch(e){strErrMsg="";};
		if (strErrMsg!="")
		{
			alert ("'" + testElement.value + "' is not a valid '" + strErrMsg + "' value.\nPlease re-enter the value.");
		}
		else
		{
			alert ("'" + testElement.value + "' is not a valid '" + testElement.name + "' value.\nPlease re-enter the value.");
		}
		testElement.className="invalid";
		testElement.focus();
		return false;
	}else{
		if (isRequired(testElement))
		{
			testElement.className="required";
		}
		else
		{
			//testElement.className="";
		}
	}
    }
    return true;

}


function getErrMsg(objFME) {
	var txtErrMsg = "";
	if (!document.all) {
		for (ifE=0;ifE<objFME.attributes.length;ifE++){
			if (objFME.attributes[ifE].name == "err_msg") {
				txtErrMsg = objFME.attributes[ifE].value;
			}
		}
	}
	else {
		txtErrMsg = objFME.err_msg;
	}
	return txtErrMsg;
}


function isValid(frmElement){
	testElementVal = frmElement.value;
	if (!frmElement.validator){
		return true;
	}else{
		testValidator = (frmElement.validator).toLowerCase();;
	}
	switch(testValidator){
		case 'date': case 'eurodate':
			 return isDate(testElementVal);
			 break;
		case 'currency': case 'curr':
			return isCurrency(testElementVal);
			break;
		case 'email':
			return isEmail(testElementVal);
			break;
		case 'warrantyemail':
			return isWarrantyEmail(testElementVal);
			break;
		case 'multiEmail': case 'multipleEmail': case 'multiemail': case 'multipleemail':
			return isMultipleEmail(testElementVal);
			break;
		case 'phone': case 'telephone':
			return isPhone(testElementVal);
			break;
		case 'numeric': case 'num': case 'number':
			return isNumeric(testElementVal);
			break;
		case 'alphanum': case 'alphanumeric':
			return isAlphaNum(testElementVal);
			break;
		case 'alphabet': case 'alphabetic':	case 'alpha':
			return isAlpha(testElementVal);
			break;
		case 'text':
			return isText(testElementVal);
			break;
		case 'time':
			return isTime(testElementVal);
			break;
		case 'postcode': case 'pcode': case 'pc':
			return isPostCode(testElementVal);
			break;
		case 'formatnum': case 'formattednum': case 'formnum': case 'formatnumber': case 'formattednumber': case 'formnumber':
			return isFormNum(testElementVal);
			break;
		case 'name':
			return isName(testElementVal);
			break;
		case 'address':
			return isAddress(testElementVal);
			break;
		case 'percentage':
			return isPercentage(testElementVal);
			break;
		default:
			alert ("validator not found :'" + testValidator + "'");
	}	
}

function isRequired(frmElement){
//returns true if form element is required
	var blnReturn = false;
	if (!document.all) {
		for (ifE=0;ifE<frmElement.attributes.length;ifE++) {
			if (frmElement.attributes[ifE].name =="required") {
				blnReturn = true;
			}
		}
	}
	else {
		blnReturn = ((frmElement.required != null) || (frmElement.Required != null) || (frmElement.REQUIRED != null));
		}
	return blnReturn;
}

function isEmptyElement(frmElement){
	testString = frmElement.value;
	return(isWhitespace(testString));
}

function isEmpty(s){
//returns true if string is empty
	
	return((s==null)||(s.length==0))
}

function isWhitespace(s){
//returns true if string is empty or
//contains only whitespace characters

	reWhitespace = /^\s+$/;
	return (isEmpty(s)||reWhitespace.test(s));
}

function isNumeric(s){

	reNumeric = /^\d+$/;
	return reNumeric.test(s);
}

function isCurrency(s){

	reCurrency = /^\d+(\.\d{2})?$/;
	return reCurrency.test(s);
}

function isEmail(s){
	reEmail = /^.+\@.+\..+$/;
	return reEmail.test(s);
}

function isWarrantyEmail(s)
{
	var words, blnIsSDI;
	words=s.split("@") //split using @ space as delimiter
	
	for (i=0; i<words.length; i++)
	{
		if(words[i].toLowerCase()=="sdi.com.au")
		{
			alert("This form is not available for SDI employees.");
			blnIsSDI = true;
			//break;
			//form.submit()=false;
			return false;
		}	
	}
	
	blnIsSDI = true;

	if (blnIsSDI != "true")
	{
		reEmail = /^.+\@.+\..+$/;	
		return reEmail.test(s);
	}
	else
	{
		form.submit=false;;
	}
}

function isMultipleEmail(s){
	pattern = /;/;	//delimit emails with semicolons
	if (s.search(pattern) == -1){
	return isEmail(s);	//no multiple emails
	}else{
		emails = s.split(pattern);
		for (i=0; i<emails.length; i++) {
			if (!isEmail(emails[i]) && !isWhitespace(emails[i])) return false;
		}
	}
	return true;	//return true if function hasn't already exited
}


function isPostCode(s){
	return (isNumeric(s) && (s < 10000) && (s > 100))
}

function isTime(s){
	is24hr = !isAMPM(s);	
	arrTime = s.split(/\D/);
	hour = arrTime[0];
	min = arrTime[1];
	//alert ("hour: " + hour +"\nmins: " + min + "\n24hr: " + is24hr);
	if (is24hr){
		return (isHour(hour) && isMinute(min))
	}else{
		return (isHour(hour) && (hour <= 12) && isMinute(min))
	}
}

function isHour(s){
	return (isNumeric(s) && (s < 24) && (s >= 0))
}

function isMinute(s){
	return (isNumeric(s) && (s < 60) && (s >= 0))
}

function isAMPM(s){
	var reTimeFormat = /am|pm$/
	return reTimeFormat.test(s)
}

function isPhone(s){
//matches any combination of digits, hyphens,
//open and close brackets and spaces

	var rePhone = /^[\d\-\(\)\s]+$/; 
	return rePhone.test(s);
}

function isFormNum(s){
//matches any combination of digits, hyphens, periods, commas
//open and close brackets, colons, slashes and spaces

	var reFormNum = /^[\d\-\(\)\s\\\:\.\,\#]+$/; 
	return reFormNum.test(s);
}

function isAlpha(s){

	reAlpha = /^[a-zA-Z]+$/;
	return reAlpha.test(s);
}

function isAlphaNum(s){

	reAlphanum = /^[a-zA-Z0-9]+$/;
	return reAlphanum.test(s);
}

function isName(s){
//mathces any combinations of letters, latin/pronunciation characters, hyphens, single quotes and single closing smart quotes, spaces
	reName = /^[A-Za-z\u00c0-\u0323\'\u2019\-\s]+$/;
	return reName.test(s);
}

function isAddress(s){
//matches any combinations of letters, latin/pronunciation characters, slashes, commas, hyphens, single quotes and all smart quotes, spaces
	reAddress = /^[A-Za-z0-9\u00c0-\u0323\'\u2018-\u201d\\\/\,\-\)\(\s]+$/;
	return reAddress.test(s);
}

function isText(s){
//mathces all characters that can be entered via the keyboard (excludes special/extended chars)and all smart quotes, spaces 
	reText = /^[\u0021-\u007e\u2018-\u201d\s]+$/;
	return reText.test(s);
}

function isDay(d, m ,y){
	return ((d <= 31) && (d > 0));
}

function isMonth(m){
	return ((m <= 12) && (m > 0));
}

function isYear(y){
	return ((y <= 2099) && (y >=1900))
}

function daysInFeb(y){
	if ((y % 4 == 0) && !((y % 100 == 0) && (y % 400 == 0))) return 29;
	return 28;
}

function isPercentage(s){
	return (isNumeric(s) && (s < 101) && (s >= -1))
}

function isDate(s){
	daysInMonth = new Array(31,29,31,30,31,30,31,31,30,31,30,31);
	arrDate = s.split('/',3);
	day = arrDate[0];
	month = arrDate[1];
	year = arrDate[2];
	if (!isDay(day) || !isMonth(month) || !isYear(year)) return false;
	//catch invalid days
	if (day > daysInMonth[month-1]) return false;
	//check february
	if ((month == 2) && (day > daysInFeb(year))) return false;	
	return true;
}

function maxlength(max, elTextArea){
   //alert(elTextArea.value.length);
   if (elTextArea.value.length >= max-1) {
      elTextArea.value = elTextArea.value.substring(0,max);
      elTextArea.className="invalid";
	  elTextArea.focus();
	  alert(elTextArea.err_msg + " exceeds the maximum number of characters (" + max + ") for this field.\nPlease re-enter the value.");
      //alert (elTextArea.err_Msg + "'s maximum character count is " +  max + ".");
      return false;
   }else{
	  elTextArea.className="";
   }
}

function init_forms(){
//intialises form - sets class for required elements
	if (document.forms.length > 0) {
		//only execute script if there is a form
		for (j=0;j<document.forms.length;j++){
			//enumerate each form
			elArr = document.forms[j].elements;
			for (var i = 0; i<elArr.length; i++) {
				//enumerate each element in form
				testElement = elArr[i];
				if (isRequired(testElement)){
					testElement.className = 'required'
				}
				if (testElement.initFocus != null || testElement.InitFocus != null || testElement.initfocus != null){
					testElement.focus();
				}
			}
		}
	}
}


function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}

function runOnLoad() {
	if(IE4) {
		if (document.body.readyState != "complete") {
			//alert("check again");
			setTimeout("setImgZoom()",1000);
			return;
			}
		setImgZoom();
		}
	try {init_forms(); } catch(e){};
}

//setTimeout("runOnLoad()",1000);
addEvent(window, 'load', runOnLoad);

