
function gettip(slot) {
	for( i = 1; i < 2; i++ ) {
		document.getElementById('tips'+i).style.display = 'none';
		document.getElementById('name').className = 'tip';
		/*document.getElementById('bubbleLP-SH'+i).className = 'bubbleLP-SH';
		document.getElementById('bubbleLP-SH'+i+'L').className = 'bubbleLP-SHL';
		document.getElementById('bubbleLP-SH'+i+'R').className = 'bubbleLP-SHR';*/
	}

	document.getElementById('tips'+slot).style.display ='block';
	document.getElementById('name').className = 'tip1';	
	/*document.getElementById('bubbleLP-SH'+slot).className = 'bubbleLP-SHA';
	document.getElementById('bubbleLP-SH'+slot+'L').className = 'bubbleLP-SHLA';
	document.getElementById('bubbleLP-SH'+slot+'R').className = 'bubbleLP-SHRA';*/
}


function preview(id1, id2){
	  		var NewText = document.getElementById(id1).value;
	  		var DivElement = document.getElementById(id2);
	  		DivElement.innerHTML = NewText;
}


function openpage(){
	  		var URL = document.getElementById('alink').value;
			window.open(URL);
}


function Validator(theForm)
{
 if (theForm.name.value == "")
 {
 alert("Please enter a value for the \"Company Name\" field.");
 theForm.name.focus();
 return (false);
 }
 if (theForm.name.value.length < 2)
 {
 alert("Please enter at least 2 characters in the \"Company Name\" field.");
 theForm.name.focus();
 return (false);
 }
 if (theForm.alink.value == "")
 {
 alert("Please enter a value for the \"Landing URL\" field.");
 theForm.alink.focus();
 return (false);
 }
 if (theForm.descr.value == "")
 {
 alert("Please enter a value for the \"Description\" field.");
 theForm.descr.focus();
 return (false);
 }
 if (theForm.descr.value.length > 180)
 {
 alert("Please enter at most 180 characters in the \"Description\" field.");
 theForm.descr.focus();
 return (false);
 }
 if (theForm.vlink.value == "")
 {
 alert("Please enter a value for the \"Visible link\" field.");
 theForm.vlink.focus();
 return (false);
 }
 if (theForm.email.value == "")
 {
 alert("Please enter a value for the \"EmailID\" field.");
 theForm.email.focus();
 return (false);
 }
 if (theForm.password.value.length != 4)
 {
 alert("Please enter 4 digits in the \"password\" field.");
 theForm.password.focus();
 return (false);
 }

 return (true);
}

