function doSubmit()
{

	document.main.btnSubmit.click()
}

function doReset()
{
	document.main.btnReset.click()
}

function newWin(url,ht,wt)
{
	//strUrl="http://" + url
	strWinParam="scrollbars,height=" + ht + ",width=" + wt
	win=window.open(url,"newWind",strWinParam)
}

function doValidate()
{
	d=document.main
	bOK=true
	if (d.realname.value=="") {bOK=false}
	if (d.Phone.value=="" & d.email.value=="") {bOK = false}
	
	if (bOK)
	{
		doSubmit()
	}
	else
	{
		alert("Please ensure you have completed your name and either your telephone or email address")
	}
}

function writeEmailAdd(add)
{
	document.write("<a class='text2' href='mailto:" + add + "@" + "mobileframing.com'>" + add + "@" + "mobileframing.com</a>")
}

function openGallery(sContentFile, iWidth, iHeight)
{	
	window.open(sContentFile, "gallery", "status=no,scrollbars=yes,resizable=yes,width=" + iWidth + ",height=" + iHeight)

}

function setImage()
{
	if (strDoc!=0)
	{
		eval("document.main.menu_r1_c" + strDoc + ".src='menu/menu_r1_c" + strDoc + "_f2.gif'")
	}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function doprevious()
{
document.src=strPrev
}

function donext()
{
document.src=strNext
}

