function clickme(){
	 var strHref = window.location.href;
	 var is = strHref.indexOf('professional')
	 var isCon = strHref.indexOf('consumer')
	 if(is >=1){
	 newURL=strHref.replace("professional","consumer")
	 }
	 else if(isCon >=1){
	 newURL=strHref.replace("consumer","professional")	 
	 }
	 window.location.href=newURL;
	 
	 }
	 
	 
	 


function val(frm) {

    if (frm.comments.value == ""){
        alert('Comment field is empty!')
        frm.comments.focus()
        return false
    }    


    if (frm.name.value == ""){
        alert('Name field is empty!')
        frm.name.focus()
        return false
    }    


    if (!check_email(frm.email.value)){
        alert('Email address is invalid!')
        frm.email.focus()
        return false
    }    

    /*
    var intIdx = frm.country.selectedIndex;
    var strCCode = frm.country.options[intIdx].value;
       
    if (strCCode=="Choose Country"){
        alert("Please choose a country")
        frm.country.focus()
        return false
    }
    */
         
    return true

}



function check_email(address) {
  if ((address == "")
    || (address.indexOf ('@') == -1)
    || (address.indexOf ('.') == -1))
      return false;
  return true;
}	 



function openWindow( pageToLoad, winName, width, height, center, x, y) {		 
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	args = "width=" + width + "," 
	+ "height=" + height + "," 
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=0,"
	+ "scrollbars=0,"
	+ "status=0," 
	+ "titlebar=1,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + x + ","  //NN Only
	+ "screeny=" + y + ","  //NN Only
	+ "left=0" + xposition + ","     //IE Only
	+ "top=0" + yposition;           //IE Only
	window.open( pageToLoad,winName,args );
}

function swapClip(clip,title)
{
	rv = document.getElementById('rmvid')
	t = document.getElementById('vidtitle')
	if(rv)
	{
		rv.DoStop();
		rv.SetSource(clip);
		rv.DoPlay();
	}
	if(t) t.innerHTML = title
}

function restartClip()
{
	rv = document.getElementById('rmvid')
	if(rv)
	{
		rv.DoStop();
		if(rv.GetSource() != "") 
			rv.DoPlay();
		else
			alert("Please choose a clip by clicking one of the links below")
	}
}

function stopClip(clip)
{
	rv = document.getElementById('rmvid')
	if(rv)
	{
		rv.DoStop();
	}
}



















