/******************************/ Function: open_win/ Args: url - URL to open/		w - New window width/		h - New window height/ Description:/ Open a URL in a new window/ with an assigned width and/ height******************************/function open_win(url,w,h) {	agent = navigator.userAgent;	windowName = "Sitelet";			params  = "";	params += "toolbar=0,";	params += "location=0,";	params += "directories=0,";	params += "status=0,";	params += "menubar=0,";	params += "scrollbars=1,";	params += "resizable=1,";	params += "width=" + w + ",";	params += "height=" + h;		   	win = window.open(url, windowName , params);			if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {		win = window.open(url, windowName , params);	}		if (!win.opener) {		win.opener = window;	}	return;}/**************************************/ Function: show_email/ Args: prefix - email name/		suffix - domain/		display - display name/ 		href - 1/0 clickable/ Description: / Display an email address through/ javascript**************************************/function show_email(prefix, suffix, display, href) {	if (suffix == "") {		suffix = "rodpub.com";	}	// setup mailto	if (href == 1) {		document.write("<a href='");		document.write("mailto:");		document.write(prefix + "@");		document.write(suffix);		document.write("'>");	}	// show mail or name	if (display == "") {		document.write(prefix + "@");		document.write(suffix);	} else {		document.write(display);	}	// close mailto	if (href == 1) {		document.write("</a>");	}}				/**************************************/ Function: open_image/ Args: img - image location/		title - window title/		w - window width/ 		h - window height/ Description: / Open a new window with an image in it/ with a certain width and height**************************************/function open_image(img, title, w, h) {	window.open(img, title, config='width='+w+',height='+h);}function menuJump(baseurl, val){	// get val via:	// this.options[selectedIndex].value	var url = baseurl+'/'+val;    location.href = url;}function menuGoto( menuform ){    // see http://www.thesitewizard.com/archive/navigation.shtml    // for an explanation of this script and how to use it on your    // own site    var baseurl = "http://dev.nonwovens-industry.com/portal/" ;    selecteditem = menuform.newurl.selectedIndex ;    newurl = menuform.newurl.options[ selecteditem ].value ;    if (newurl.length != 0) {      location.href = baseurl + newurl + '/' ;    }}/**************************************/ Function: checkEmail/ Args: email - email as string/ Description: / Check whether an email is valid/ Returns: true or false**************************************/function checkEmail(email) {	var regex  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;	if (regex.test(email)) return true;	else return false;}