//============================================================================
//---< WWW.DIMASMT.NL >-------------------------------------------------------
//
function CompareProducts(intNMID,intNSID)
{
	comprod = window.open("../cmpage/compare.asp?nmid=" + intNMID + "&nsid=" + intNSID,"cmprd","WIDTH=620,HEIGHT=440,SCROLLBARS=YES,TOOLBAR=0");
	comprod.focus();
}
function CompareAccessories(intAGID)
{

	comprod = window.open("../cmpage/compareAcc.asp?AGID="+intAGID,"cmprd","SCROLLBARS=YES,TOOLBAR=0,status=YES");
	comprod.focus();
}

//
function ShowPhoto(strFILENAME)
{
	photowin = window.open("../cmpage/showphoto.asp?file=" + strFILENAME,"pwprd","WIDTH=500,HEIGHT=580,SCROLLBARS=0,TOOLBAR=0");
	photowin.focus();
}
//
function ShowVideo(intType, strFILENAME)
{
	document.location.href = "../cmdata/video/" + strFILENAME;
}
//
function OpenWindow(strHTML)
{
	miscwin = window.open(strHTML,"mwprd","WIDTH=500,HEIGHT=400,SCROLLBARS=1,TOOLBAR=0");
	miscwin.focus();
}
//
function ShowLocation(strHTML)
{
	photowin = window.open(strHTML,"lcprd","WIDTH=500,HEIGHT=730,TOP=25, SCROLLBARS=1,TOOLBAR=0");
	photowin.focus();
}
//
function OrderNow(strHTML)
{
	orderwin = window.open("../contact/ordernow.asp?" + strHTML,"ordnw","WIDTH=400,HEIGHT=220,SCROLLBARS=0,TOOLBAR=0");
	orderwin.focus();
}

//
function StartSite()
{
	orderwin = window.open("../html/uc.htm","ucwnd","WIDTH=400,HEIGHT=220,SCROLLBARS=0,TOOLBAR=0");
	orderwin.focus();
}
//
function leapto(form)
{
	var myindex = form.cc.selectedIndex
  if (myindex != ""){
  	if (form.cc.options[myindex].value !=""){
			form.submit();
    }
  }
}
//
function CheckContactForm()
{
		if (document.forms["contact"].elements["strFirstName"].value.length > 1){
			if (document.forms["contact"].elements["strLastName"].value.length > 2){
			 	if (document.forms["contact"].elements["strCompany"].value.length > 2){
					if (document.forms["contact"].elements["strAddress"].value.length > 2){
							if (document.forms["contact"].elements["strCity"].value.length > 2){
								if (document.forms["contact"].elements["strZIPPOSTAL"].value.length > 5){
									if (document.forms["contact"].elements["strTELEPHONE"].value.length >9){
										if (document.forms["contact"].elements["strEMAIL"].value.indexOf("@",3)>3 && document.forms["contact"].elements["strEMAIL"].value.indexOf(".",6)>1){
											if (document.forms["contact"].elements["strCOUNTRY"].value.length > 5){
												if (document.forms["contact"].elements["vraag"].value.length > 10){
							 						document.forms["contact"].submit();
												} else alert("Question/remark field is required");
											} else alert("Country field is required");
										} else alert("E-mail field is required");
									} else alert("Telephone number is incorrect");
								} else alert("Zip/postal code field is required");
							} else alert("City field is required");
					 } else alert("Adress field is required");
				} else alert("Company name field is required");
			} else alert("Last name field is required");
	 } else alert("First name field is required");
	}

function resizeBody(nrOffRows,nrOffColls){


	var width = 161+nrOffColls*125;
	if ( width>screen.width) {
		width=screen.width
	}
	var height = 238+nrOffRows*17;
	if ( height>screen.height) {
		height =screen.height

	}
	var X= (screen.width-width)/2;

		 window.resizeTo(width,height)
		 window.moveTo(X, 50)
}




	//============================================================================
//---< RNM TOOLS >------------------------------------------------------------
//
function Page_Forward(intPID){
	PageOPTWIN = window.open("../rnmtools/forward.asp?pid=" + intPID,"pow","WIDTH=400,HEIGHT=180,");
	PageOPTWIN.focus();
}
//
function Page_Contact(intPID){
	PageCONWIN = window.open("../rnmtools/contact.asp?pid=" + intPID,"pow","WIDTH=400,HEIGHT=180,TOOLBARS=1,");
	PageCONWIN.focus();
}
//
function Page_Print(intPID){
  if (window.print)
  {
    this.focus();
    setTimeout('window.print();',200);
  } else
    {
      alert("Toets 'Ctrl+p' op uw toetsenbord om te printen.");
    }
}

//============================================================================
