
function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_form.asp", "Request a Personalized Demo", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage2(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_enewsletter.asp", "Monthly CRM Newsletter", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage1(wp){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_whitepapers.asp?wp=" + wp, "Request for White Papers", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage3(wp){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_get_quote.asp?wp=" + wp, "Request a Quote ", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}


function openmypage4(wp){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_role_based_demo.asp?wp="+wp, "Request SugarCRM Role-Based Demos", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage5(wp){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_webcasts.asp?wp="+wp, "Request SugarCRM Webcasts", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage6(wp){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_sugarcrm_whitepapers.asp?wp="+wp, "White Papers", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage7(wp){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_sugarcrm_free_trial.asp?wp="+wp, "SugarCRM Free Trial", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage8(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_free_trial.asp", "Request a Free Trial", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage9(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/reg_slx_easy_pay.asp", "SalesLogix Easy Pay", "width=850px,height=600px,left=140px,top=96px,resize=0,scrolling=1")
}

function openmypage10(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/company/crm_acceleration.asp", "CRM Acceleration - Boston, MA", "width=570px,height=390px,left=340px,top=96px,resize=0,scrolling=1")
}


function openmypage11(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "iframe", "/company/mas_90_200.asp", "MAS 90/200 User Conference", "width=600px,height=500px,left=340px,top=150px,resize=0,scrolling=1")
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0

  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  
  for (i=0; i<(args.length-2); i+=3) {
  	//nm=args[i+1];
  	test=args[i+2];
  	val=MM_findObj(args[i]);
  	//alert(val.name +'='+val.value);
    if (val) {
    	//nm=val.name;
    	nm=args[i+1];
    	if (nm=='')
    		nm=val.name;
    	if ((val=val.value)!="") {
	      if (test.indexOf('isEmail')!=-1) {
	      	p=val.indexOf('@');
	        if (p<1 || p==(val.length-1))
	        	errors+='- '+nm+' must contain an e-mail address.\n';
	      } else if (test!='R') {
	      	num = parseFloat(val);
	        if (isNaN(val))
	        	errors+='- '+nm+' must contain a number.\n';
	        	if (test.indexOf('inRange') != -1) {
	        		p=test.indexOf(':');
	          	min=test.substring(8,p);
	          	max=test.substring(p+1);
	          	if (num<min || max<num)
	          		errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    			}
	    	}
    	} else if (test.charAt(0) == 'R')
    		errors += '- '+nm+' is required.\n';
    }
  }

  if (errors)
  	alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');
  //alert(document.MM_returnValue);
}