
<!--

var acceptsCookies = false;
if(document.cookie == "") {
    	//document.cookie = "acceptsCookies=yes"; // cookie ok
     	document.cookie = "acceptsCookies" + escape("yes"); // cookie ok
   	if(document.cookie.indexOf("acceptsCookies=yes") != -1) {
		acceptsCookies = true; 
    	}
} 
else {
  	acceptsCookies = true;
}

function cookieNotOk() {
	/*if(document.cookie == '') {
    		document.cookie = 'acceptsCookies=yes'; // cookie ok
    		if(document.cookie.indexOf('acceptsCookies=yes') != -1) {
			acceptsCookies = true; 
			//window.location.href = unescape(window.location.pathname);
			window.location.reload();
    		}
    		else {*/		
alert("Your web browser options are currently set to disable cookies. To use our inquiry's section you must enable them.\n\nGo to the web browser's menue, click on 'Tools'\nClick on 'Internet Options'\nClick on the 'Privacy' tab\nChange your privacy to enable cookies\nClick the 'OK' button\n\nOtherwise please inquire by phone, mail, fax or e-mail shown in the contact's section.\n\nIf you change your settings, please click on the link '. here' in the inquiry's section to actualize the change.");
		/*}
	}
	else {
  		acceptsCookies = true;
		window.location.href = unescape(window.location.pathname);
		window.location.reload();
	}*/
}



var user;
var domain;
var suffixe;
function hideEmail(user, domain, suffixe){
document.write('<img src="images/yellowSquare.gif" width="2" height="2"> <a class="aRegular" href="' + 'mailto:' + user + '@' + domain + '.' + suffixe + '">' + user + '@' + domain + '.' + suffixe + '</a>');
}


var submitClick = 0;
var eMailOk = false;
function doSubmit(form){
	//alert(eval("document." + form + ".submitClick.value"));
	//if (eMailOk == true && eval("document." + form + ".submitClick.value = 'Yes'")) {
	if (eMailOk == true) {
		if (submitClick == 0) {
			submitClick = submitClick + 1;
			eval("document." + form + ".submit()");
		}
		//else alert("You have already submit your inquiry.\n\nIt has been sent to Saccharides.Net.\n\nIt will be confirmed by return e-mail.\n\n We'll do our best to answer within 5 working days.");
		else {
			if (form == 'addClient') {
				eval("document." + form + ".secondTime.value = 'Yes'");
				eval("document." + form + ".submit()");
			}
			else {
				window.location.href = "inquiry.asp?menu=inquiry&methode=inquirySent"
			}
		}
	}
}


var click = 0;
function submitOnce(form){
	if (click == 0) {
		click = click + 1;
		eval("document." + form + ".submit()");
	}
	else if (form == 'addClient') {
		window.location.href = "default.asp"
	}
	else {
		window.location.href = "inquiry.asp?menu=inquiry&curPInquiry=1"
	}
}




function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		inquiry_over = newImage("images/inquiry-over.gif");
		products_over = newImage("images/products-over.gif");
		terms_over = newImage("images/terms-over.gif");
		contact_over = newImage("images/contact-over.gif");
		email_over = newImage("images/email-over.gif");
		preloadFlag = true;
	}
}

function OpenIdentificationWindow() {
NewWindow=window.open("admin/identification.asp", "_blank", "resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=548,height=400");
}

function InquiryCheckOutFunction(arg) {
	document.inquiryCheckOut.refTempSubInquiry.value = arg;
	document.inquiryCheckOut.submit();
}

//-->





