//// guy shahar's flash detection function
function Browser(param,param2){
	    http="http:/\/";
	this.Usage_URL=http+"www.guyshahar.com/detect/usage.html";
	this.v=parseFloat(navigator.appVersion);
	this.uA=navigator.userAgent;
	this.ns=false;
	this.ns6=false;
	this.ie=false;
	this.ie5=false;
	this.opera=false;
	this.AOL=false;
	this.mac=false;
	this.pc=false;
	this.dhtml=false;
	this.Java=false;
	this.Flash=false;
	this.Flash_Download=http+"www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";
	this.Flash_Codebase=http+"download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0";
	this.QuickTime=false;
	this.RealPlayer=false;
	this.loaded=false;
	this.author="Guy Shahar";
	this.lastModified="V2.5 09/21/01 2:30PM";
	this.lastModifiedBy=this.author;
	navigator.appVersion.indexOf('Mac')!=-1?(this.mac=true):(this.pc=true);
	var ns6pos=this.uA.indexOf('Netscape6/');
	var iepos=this.uA.indexOf('MSIE');
	var oppos=this.uA.indexOf('Opera');
	var AOLpos=this.uA.toUpperCase().indexOf('AOL');

	if(oppos>0){
		this.v=parseFloat(this.uA.substring(oppos+6,this.uA.length));
		this.opera=true;
	}
	else{
		navigator.appName.indexOf('Netscape')!=-1?(this.ns=true):(this.ie=true);
	}
	
	if(iepos!=-1){
		ie5cut=this.uA.substring(iepos+5,this.uA.length);
		this.v=parseFloat(ie5cut.substring(0,ie5cut.indexOf('\;')));
		if(this.v>=5)this.ie5=true;
	}
	this.guy=true;

	if(ns6pos!=-1){
		this.v=parseFloat(this.uA.substring(ns6pos+10,this.uA.length));
		this.ns6=true;
	}
	if(AOLpos!=-1){
		this.AOL=parseFloat(this.uA.substring((AOLpos+3),this.uA.length));
	}
	if(this.v>=4){
		this.dhtml=this.opera?false:true;this.Java=navigator.javaEnabled();
	}
	Browser.prototype.Detect=Detect;
	Browser.prototype.Display=DetectDisplay;
	Browser.prototype.EmbedFlash=DetectEmbedFlash;
	Browser.prototype.EmbedQuickTime=DetectEmbedQuickTime;
	Browser.prototype.EmbedStyleSheet=DetectEmbedStyleSheet;
	Browser.prototype.CSS=DetectCSS;
	Browser.prototype.FixPrint=DetectFixPrint;
	Browser.prototype.Help=DetectHelp;
	Browser.prototype.Usage=DetectHelp;

	if(param==1){
		this.Detect();this.FixPrint();
	}
	if(document.layers){
		this.origWidth=innerWidth;this.origHeight=innerHeight;
	}
}

function Detect(){
	if(this.loaded==true){
	return;
	}

	this.loaded=true;
	ActiveX='<SCRIPT language="VBScript">\n';ActiveX+='Function GetFlashValue\n';ActiveX+='on error resume next\n';ActiveX+='dim tmpobj, FlashInstalled\n';ActiveX+='FlashInstalled = 0\n';ActiveX+='tmpobj = 0\n';ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.2")\n';ActiveX+='if IsObject(tmpobj) then FlashInstalled = 2\n';ActiveX+='tmpobj = 0\n';ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.3")\n';ActiveX+='if IsObject(tmpobj) then FlashInstalled = 3\n';ActiveX+='tmpobj = 0\n';ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.4")\n';ActiveX+='if IsObject(tmpobj) then FlashInstalled = 4\n';ActiveX+='tmpobj = 0\n';ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.5")\n';ActiveX+='if IsObject(tmpobj) then FlashInstalled = 5\n';ActiveX+='tmpobj = 0\n';ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.6")\n';ActiveX+='if IsObject(tmpobj) then FlashInstalled = 6\n';ActiveX+='tmpobj = 0\n';ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.7")\n';ActiveX+='if IsObject(tmpobj) then FlashInstalled = 7\n';ActiveX+='GetFlashValue = FlashInstalled\n';ActiveX+='End Function\n';ActiveX+='Function GetQuickTime\n';ActiveX+='On Error Resume Next\n';ActiveX+='Set theObject = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1")\n';ActiveX+='On Error goto 0\n';ActiveX+='If IsObject(theObject) Then\n';ActiveX+='If theObject.IsQuickTimeAvailable(0) Then\n';ActiveX+='QTime = true\n';ActiveX+='End If\n';ActiveX+='End If\n';ActiveX+='GetQuickTime = QTime\n';ActiveX+='End Function\n';ActiveX+='Function GetRealPlayer\n';ActiveX+='On Error Resume Next\n';ActiveX+='RealPlayerG2 = (NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control")))\n';ActiveX+='GetRealPlayer = RealPlayerG2\n';ActiveX+='End Function\n';ActiveX+='<\/SCRIPT>\n';
	if(navigator.plugins&&navigator.plugins.length>0){nparray=navigator.plugins;nparraylen=nparray.length;for(i=0;i<nparraylen;i++){npplugin=nparray[i];npname=npplugin.name;npdesc=npplugin.description;if(npname.indexOf("Shockwave Flash 2")!=-1){this.Flash=2;}if(npdesc.indexOf("Shockwave Flash 3")!=-1){this.Flash=3;}if(npdesc.indexOf("Shockwave Flash 4")!=-1){this.Flash=4;}if(npdesc.indexOf("Shockwave Flash 5")!=-1){this.Flash=5;}if(npdesc.indexOf("Shockwave Flash 6")!=-1){this.Flash=6;}if(npdesc.indexOf("Shockwave Flash 7")!=-1){this.Flash=7;}if(npname.indexOf("QuickTime")!=-1){this.QuickTime=true;}if(npname.indexOf("RealPlayer")!=-1){this.RealPlayer=true;}}}else if(this.ie){if(!this.mac){document.write(ActiveX);this.Flash=GetFlashValue();if(!this.Flash){this.Flash=false;}this.QuickTime=GetQuickTime();if(!this.QuickTime){this.QuickTime=false;}this.RealPlayer=GetRealPlayer();if(!this.RealPlayer){this.RealPlayer=false;}}else{this.Flash=-1;this.QuickTime=-1;this.RealPlayer=-1;}}disableFlash=document.URL.toLowerCase().indexOf("flash=false")>document.URL.indexOf("?");if(disableFlash){this.Flash=false;}disableQuickTime=document.URL.toLowerCase().indexOf("quicktime=false")>document.URL.indexOf("?");if(disableQuickTime){this.QuickTime=false;}disableRealPlayer=document.URL.toLowerCase().indexOf("realplayer=false")>document.URL.indexOf("?");if(disableRealPlayer){this.RealPlayer=false;}}function DetectDisplay(){if(this.mac){font_size=12;}else{font_size=10.5;}document.write('<style type="text/css">\<\!--td {font-family: arial; font-size:'+font_size+'pt;}--\></style>');bn=this.ns?"Netscape":"IE";if(this.opera){bn="Opera"}pn=this.mac?"Mac":"PC";if(this.Flash){flash_installed=" with Flash "+this.Flash;}else{flash_installed="";}if(this.QuickTime){qt_installed=", QuickTime";}else{qt_installed="";}if(this.RealPlayer){rp_installed=", RealPlayer";}else{rp_installed="";}document.writeln('<blockquote><table  cellspacing="1" cellpadding="1">');document.writeln('<tr><td colspan="2"><font color="#003399"><b>'+bn+' '+this.v+' / '+pn+flash_installed+qt_installed+rp_installed+'</b></font><hr></td></tr>');document.writeln('<tr><td><b>appName</b>: </td><td>'+navigator.appName+'</td></tr>');document.writeln('<tr><td><b>appVersion</b>: </td><td>'+navigator.appVersion+'</td></tr>');document.writeln('<tr><td><b>userAgent</b>: </td><td>'+navigator.userAgent+'</td></tr>');document.writeln('<tr><td><b>platform</b>: </td><td>'+navigator.platform+'</td></tr>');document.writeln('<tr><td colspan="2">&nbsp;</td></tr>');document.writeln('<tr><td><b>ns</b>: </td><td>'+this.ns+'</td></tr>');document.writeln('<tr><td><b>ns6</b>: </td><td>'+this.ns6+'</td></tr>');document.writeln('<tr><td><b>ie</b>: </td><td>'+this.ie+'</td></tr>');document.writeln('<tr><td><b>ie5</b>: </td><td>'+this.ie5+'</td></tr>');document.writeln('<tr><td><b>opera</b>: </td><td>'+this.opera+'</td></tr>');document.writeln('<tr><td><b>pc</b>: </td><td>'+this.pc+'</td></tr>');document.writeln('<tr><td><b>mac</b>: </td><td>'+this.mac+'</td></tr>');document.writeln('<tr><td><b>AOL</b>: </td><td>'+this.AOL+'</td></tr>');document.writeln('<tr><td><b>dhtml</b>: </td><td>'+this.dhtml+'</td></tr>');document.writeln('<tr><td><b>Java</b>: </td><td>'+this.Java+'</td></tr>');document.writeln('<tr><td><b>Flash</b>: </td><td>'+this.Flash+'</td></tr>');document.writeln('<tr><td><b>QuickTime</b>: </td><td>'+this.QuickTime+'</td></tr>');document.writeln('<tr><td><b>RealPlayer</b>: </td><td>'+this.RealPlayer+'</td></tr>');if(document.layers){document.writeln('<tr><td><b>Width</b>: </td><td>'+this.origWidth+'</td></tr>');document.writeln('<tr><td><b>Height</b>: </td><td>'+this.origHeight+'</td></tr>');}document.writeln('<tr><td><br /></td><td><br /></td></tr>');document.writeln('<tr><td><b>Author</b>: </td><td>'+this.author+'</td></tr>');document.writeln('<tr><td><b>Last Revision</b>: </td><td>'+this.lastModified+' by '+this.lastModifiedBy+'</td></tr>');document.writeln('<tr><td colspan=2><br /><a href="'+this.Usage_URL+'">Usage</a></td></tr>');document.writeln('</table></blockquote>');}function DetectEmbedFlash(file,width,height,fVersion,autostart,force){var insHTML="";var override=document.URL.indexOf("flash=false")>document.URL.indexOf("?");var force_flash=document.URL.indexOf("flash=true")>document.URL.indexOf("?");if(!fVersion){fVersion=3;}if(!width){width=10;}if(!height){height=10;}if(!autostart){autostart=false;}file_ID=(file.indexOf(".")==0||file.indexOf("/")==0)?"Flashfile":file.substring(0,file.indexOf('.'));if((this.Flash>=parseFloat(fVersion)&&!override)||(force&&this.mac&&this.ie&&this.v<5)||force_flash){insHTML=('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+this.Flash_Codebase+'" HEIGHT='+height+' WIDTH='+width+' ID='+file_ID+'>\n');insHTML+=('<PARAM NAME=movie VALUE="'+file+'">\n');insHTML+=('<PARAM NAME=quality VALUE=high>\n');insHTML+=('<PARAM NAME=AUTOSTART VALUE='+autostart+'> \n');insHTML+=('<EMBED src="'+file+'" quality=high width='+width+' height='+height+' type="application/x-shockwave-flash" pluginspage="'+this.Flash_Download+'" autostart="'+autostart+'" ');insHTML+=('></EMBED>\n');insHTML+=('</OBJECT>\n');document.write(insHTML);return true;}else{return false;}}function DetectEmbedQuickTime(file,width,height){var insHTML="";var QuickTime_Download_URL="http://www.apple.com/quicktime/download/";var override=document.URL.toLowerCase().indexOf("quicktime=false")>document.URL.indexOf("?");if(!override&&this.QuickTime==true){insHTML='<EMBED src="'+file+'"';if(width&&height){insHTML+=' WIDTH='+width+' HEIGHT='+height+' ';}insHTML+='></EMBED>\n';document.write(insHTML);return true;}}function DetectEmbedStyleSheet(file,elsefile){var args=DetectEmbedStyleSheet.arguments;var conditions=0;var embed_file;for(i=2;i<args.length;i++){if(args[i]==true){conditions++;}}if(conditions==(args.length-2)||args.length<=2){embed_file=file;}else if(elsefile){embed_file=elsefile;}if(embed_file){document.writeln('<LINK REL="stylesheet" TYPE="text/css" HREF="'+embed_file+'" />');}}function DetectCSS(CSS_ns,CSS_mac){if(document.layers){this.EmbedStyleSheet(CSS_ns);}if(this.mac&&!this.ns6&&!(this.ie&&this.v>=5)){this.EmbedStyleSheet(CSS_mac);}}window.print=window.print;function DetectFixPrint(){if(this.ie){if(this.pc){window.print=new Function("PrintThis()");document.write('<OBJECT id="thePrinter" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT><SCRIPT language="VBScript">\nsub PrintThis\nOn Error Resume Next\nthePrinter.ExecWB 6, 1\nend sub\n</SCRIPT>');}else{window.print=new Function("alert('This function is disabled by your browser.\\n\\nClick OK, then press Command-P to Print.')");}}}function DetectHelp(){window.open("' + this.Usage_URL + '");}if(document.layers){origWidth=innerWidth;origHeight=innerHeight;onresize=NetscapeResizeFix;}function NetscapeResizeFix(){if(innerWidth!=origWidth||innerHeight!=origHeight){location.reload(true);}}
			
	//// index of industries for leftnav dropdown menu
	//// delimiter syntax: name of item $$&&$$http://www.url.com (relative paths ok)
	industryUrlArray = new Array;
	industryUrlArray[0] = 'Select$$&&$$#';
	industryUrlArray[1] = 'Agriculture$$&&$$C_agric.html';
	industryUrlArray[2] = 'Building &amp; Construction$$&&$$C_build.html';
	industryUrlArray[3] = 'Electronics$$&&$$C_electr.html';
	industryUrlArray[4] = 'Energy and Utilities$$&&$$C_energy.html';
	industryUrlArray[5] = 'Government$$&&$$C_government.html';
	industryUrlArray[6] = 'Healthcare &amp; Medical$$&&$$C_health.html';
	industryUrlArray[7] = 'Manufacturing$$&&$$C_man.html';
	industryUrlArray[8] = 'Packaging, Printing & Graphics$$&&$$C_packaging.html';
	industryUrlArray[9] = 'Plastics$$&&$$C_plastics.html';
	industryUrlArray[10] = 'Safety & Protection$$&&$$C_safety.html';
	industryUrlArray[11] = 'Transportation$$&&$$C_transportation.html';
	
	//// index of industries for leftnav dropdown menu
	//// delimiter syntax: name of item $$&&$$http://www.url.com (relative paths ok)
	prodFamUrlArray = new Array;
	prodFamUrlArray[0] = 'Select$$&&$$#';
	prodFamUrlArray[1] = 'Consumer Brands & Products$$&&$$other_consumerBrands2.html';
	prodFamUrlArray[2] = 'Additives and Modifiers$$&&$$other_prodFam_additiv.html';
	prodFamUrlArray[3] = 'Adhesives and Binders$$&&$$other_prodFam_adhes.html';
	prodFamUrlArray[4] = 'Building & Construction$$&&$$other_prodFam_build.html';
	prodFamUrlArray[5] = 'Chemicals$$&&$$other_prodFam_chem.html';
	prodFamUrlArray[6] = 'Consulting$$&&$$other_prodFam_consult.html';
	prodFamUrlArray[7] = 'Crops, Seeds and Inoculants$$&&$$other_prodFam_crop.html';
	prodFamUrlArray[8] = 'Crop, Plant and Pest Management Products$$&&$$other_prodFam_pest.html';
	prodFamUrlArray[9] = 'Display Materials$$&&$$other_prodFam_display.html';
	prodFamUrlArray[10] = 'Electronic and Electrical Materials$$&&$$other_prodFam_electr.html';
	prodFamUrlArray[11] = 'Films$$&&$$other_prodFam_films.html';
	prodFamUrlArray[12] = 'Filtration and Separation$$&&$$other_prodFam_filter.html';
	prodFamUrlArray[13] = 'Food Protection and Quality Assurance Products$$&&$$other_prodFam_food.html#';
	prodFamUrlArray[14] = 'Fuel Cell Components$$&&$$other_prodFam_fuel.html';
	prodFamUrlArray[15] = 'Packaging Materials$$&&$$other_prodFam_pack.html';
	prodFamUrlArray[16] = 'Paint, Coatings and Finishes$$&&$$other_prodFam_pain.html';
	prodFamUrlArray[17] = 'Performance Fibers and Fabrics$$&&$$other_prodFam_perf.html';
	prodFamUrlArray[18] = 'Photovoltaic Components$$&&$$other_prodFam_phot.html';
	prodFamUrlArray[19] = 'Pigments and Colorants$$&&$$other_prodFam_pigm.html';
	prodFamUrlArray[20] = 'Plastics, Polymers and Elastomers$$&&$$other_prodFam_plastics.html';
	prodFamUrlArray[21] = 'Printing and Proofing Materials$$&&$$other_prodFam_prin.html';
	prodFamUrlArray[22] = 'Protective Apparel and Accessories$$&&$$other_prodFam_prot.html';
	prodFamUrlArray[23] = 'Wire and Cable Materials$$&&$$other_prodFam_wire.html';
	
//// replace an image by ID
function replaceImage(RightImageObj, NewImageUrl){
	var NewImageUrl = 'http://www2.dupont.com/globalassets/v3/images/en_US/' + NewImageUrl;
	document.getElementById(RightImageObj).src = NewImageUrl;
}

// simple rollover
function simpleRollover(imageToChange, overState) {
	if(overState == 'over') {
		replaceImage(imageToChange, (imageToChange + '_o.gif'));
	} 
	else {
		replaceImage(imageToChange, (imageToChange + '.gif'));
	}
}

//// topnav functions
function topNav(mainNavBtnOvr) {
	//// handle the top row
	if(mainNavBtnOvr.indexOf('topNav_Mn_') != -1){
		for (var loop = 0; loop < document.getElementsByTagName('img').length; loop++) {
		var imgIdName = "document.getElementsByTagName('img')[" + loop + "]";
			if(eval(imgIdName).id == mainNavBtnOvr){
			replaceImage((eval(imgIdName).id), (eval(imgIdName).id + '_o.gif'));
				if (document.getElementById(mainNavBtnOvr + 'SubDiv')) {
				document.getElementById(mainNavBtnOvr + 'SubDiv').style.display = 'block';
				}
			} else if (eval(imgIdName).id.indexOf('topNav_Mn_') != -1 || eval(imgIdName).id.indexOf('topNav_Sn_') != -1 ) {
			replaceImage((eval(imgIdName).id), (eval(imgIdName).id + '.gif'));
				if (document.getElementById(eval(imgIdName).id + 'SubDiv')) {
				document.getElementById(eval(imgIdName).id + 'SubDiv').style.display = 'none';
				}
			}
		}
	//// handle the bottom row
	} else if (mainNavBtnOvr.indexOf('topNav_Sn_') != -1){
		for (var loop = 0; loop < document.getElementsByTagName('img').length; loop++) {
		var imgIdName = "document.getElementsByTagName('img')[" + loop + "]";
			if(eval(imgIdName).id == mainNavBtnOvr) {
			 simpleRollover(eval(imgIdName).id, 'over');
			} else if (eval(imgIdName).id.indexOf('topNav_Sn_') != -1) {
			 simpleRollover(eval(imgIdName).id, 'out');
			}
		}
	//// handle the defaults
	} else if (mainNavBtnOvr == 'false'){
		for (var loop = 0; loop < document.getElementsByTagName('img').length; loop++) {
		var imgIdName = "document.getElementsByTagName('img')[" + loop + "]";
			if(eval(imgIdName).id == currentTopNavHomeIcon){
			replaceImage((eval(imgIdName).id), (eval(imgIdName).id + '_s.gif'));
				if (document.getElementById(eval(imgIdName).id + 'SubDiv')) {
				document.getElementById(eval(imgIdName).id + 'SubDiv').style.display = 'block';
				}
			} else if (eval(imgIdName).id.indexOf('topNav_Mn_') != -1 || eval(imgIdName).id.indexOf('topNav_Sn_') != -1 ) {
			replaceImage((eval(imgIdName).id), (eval(imgIdName).id + '.gif'));
				if (document.getElementById(eval(imgIdName).id + 'SubDiv')) {
				document.getElementById(eval(imgIdName).id + 'SubDiv').style.display = 'none';
				}
			}
		}
	}
}



// URL - this is a string containing the URL of the document to open 
// name - this is a string containing the name of the new window. 
// w - This sets the width of the new window in pixels. 
// h - This sets the height of the new window in pixels. 
// features - this is an optional string 
// (see: http://www.devguru.com/technologies/ecmascript/quickref/win_open.html)

function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
} 

<!--
// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
// * an argument defaults when it is assigned null as a placeholder
// * a null placeholder is not required for trailing omitted arguments

function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");

document.cookie = curCookie;
}

// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist

function getCookie(name) {
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);

if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else
begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1)
end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
}

// name - name of the cookie
// [path] - path of the cookie (must be same as path used to create cookie)
// [domain] - domain of the cookie (must be same as domain used to create cookie)
// * path and domain default if assigned null or omitted if no explicit argument proceeds

function deleteCookie(name, path, domain) {
if (getCookie(name)) {
document.cookie = name + "=" + 
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}


function isCookieInDomain(_cookieDomainName,_domain) {
   var d = getCookie(_cookieDomainName);

   return ( -1 != _domain.indexOf(d)) ? 1 : 0;
}


function resetCookie(_refname, _domainname) {
   // See if referrer cookie already exists 
   var referrer = getCookie(_refname);

   // if the cookie wasn't found, then set the cookie
   if (referrer) { 
     if( !isCookieInDomain(_domainname, document.domain)) {
       setCookie(_refname, document.referrer);
       setCookie(_domainname, document.domain);
     } 

   } else {
     setCookie(_refname, document.referrer);
     setCookie(_domainname, document.domain);
   }
}

//resetCookie();

// svcContactForm - this function is used to process some variables which are sent to the contact us servlet
// _refname - name of the cookie
// _svltUrl - path to the servlet 
// _form - name of form on page

function svcContactForm(_refname, _svltUrl, _form) {
   _form.pageref.value = getCookie(_refname);
   _form.domain.value = document.domain;
   //eval(_form+".submit()");
   _form.submit();
}

// svcRequestDocumentForm - this function is used to process some variables which are sent to the request document servlet
// _refname - name of the cookie
// _svltUrl - path to the servlet 
// _form - name of form on page
// documentID - the document ID number for the request

function svcRequestDocumentForm(_refname, _svltUrl, _form, documentId) {
   _form.pageref.value = getCookie(_refname);
   _form.domain.value = document.domain;
   _form.docid.value = documentId;
   _form.submit();
}


// name - name of the referrer cookie string

function setReferrer(name) {
// See if referrer cookie already exists 
var referrer = getCookie(name);

// if the cookie wasn't found, then set the cookie
if (!referrer) { 
referrer = document.referrer;
setCookie(name, referrer);
}
}

// variable - name of the query string variable to return

function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");

  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    } else {
      return "";
    } //end if
  } //end for
}//end function


