//***** Input From Screen Keyboard *******
function Input(Input){
		strInput = document.all.login.value;
		if(Input =="delete"){
		   strInput = strInput.substring(0,strInput.length -1);
		 }else{
			strInput = strInput + Input;}//end of if input
		
        document.all.login.value =  strInput;
	}
//**** End Of Input From Screen Keyboard**


//*******Hide and Show Function **********
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
    }
    bw=new checkBrowser()
//With nested layers for netscape, this function hides the layer if it's visible and visa versa
function showHide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden'
	else obj.visibility='visible'
    }
    //Shows the div
function show(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='visible'
    }
//Hides the div
function hide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='hidden'
    }
//******End OF Hide and Show function	


// ******** Inserting Date On Pages******
function TodayIs(){
	    strDate = new Date();
		strDay = strDate.getDate();
		document.write('<FONT FACE="Comic Sans MS" POINTSIZE="8" COLOR="#000080" SIZE="+1"><B>Today is: ');
		document.write((strDate.getMonth()+1)+'/'+strDate.getDate()+'/'+strDate.getYear()+'</FONT></B>');
		}

// ******** End Of Inserting Date On Pages******
		
//******* Creating Tables for Contact Form *****		
function CreateTable(strThis){
			   var strTable="";
			   strTable=strTable + '<TABLE ALIGN="center" BORDER="0">';
			 if(strThis=="dealer"){
		//***Dealer Table		   
			   //strTable=strTable + '<TR><TH COLSPAN="2" ALIGN="left"><FONT STYLE="font-size:15px; font-type:Arial">2. Dealer:</FONT></TH>	</TR>';
			   //strTable=strTable + '<TR><TD COLSPAN="2" STYLE="font-size:15px; font-type:Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="CheckBox" NAME="checkmark1" VALUE="Currently sell Restautant POS system"><B>Currently sell Restautant POS system</B></TD></TR>';
			   //strTable=strTable + '<TR><TD COLSPAN="2" STYLE="font-size:15px; font-type:Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="CheckBox" NAME="checkmark2" VALUE="Re-sell DSL"><B>Re-sell DSL / cable modem line</B></TD></TR>';
			   strTable=strTable + '<TR><TD ALIGN="right" STYLE="font-size:15px; font-type:Arial"><B>Best time to reach you:</B></TD><TD><INPUT TYPE="text" NAME="TimeToReach" SIZE="9" MAXLENGTH="8"></TD></TR>';
			   strTable=strTable + '<TR><TH COLSPAN="2" ALIGN="left" STYLE="font-size:15px; font-type:Arial">What are you looking for?</TH></TR>';
			   strTable=strTable + '<TR><TD COLSPAN="2" STYLE="font-size:15px; font-type:Arial"><TEXTAREA COLS="50" ROWS="5" NAME="comments"></TEXTAREA></TD></TR>';
	  //*** Dealer End
	  
	          }else{
	  // *** User Table
			  strTable=strTable + '<TR><TH COLSPAN="2" ALIGN="left"><FONT SIZE="+1">2. End User:</FONT></TH></TR>';
			  strTable=strTable + '<TR><TD COLSPAN="2">&nbsp;&nbsp;&nbsp;&nbsp;<B>Describe your type of operation:</B></TD></TR>';
			  strTable=strTable + '<TR><TD COLSPAN="2" ALIGN="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="CheckBox" NAME="Bar" VALUE="Bar">Bar&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="CheckBox" NAME="Restaurant" VALUE="Restaurant">Restaurant&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="CheckBox" NAME="Fast" VALUE="Fast Food">Fast Food&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="CheckBox" NAME="Takeout" VALUE="Takeout/Delivery">Takeout/Delivery&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>Number of restaurants:</B></TD>';
			  strTable=strTable + '<TD><INPUT TYPE="radio" VALUE="1" NAME="RestaurantNumber">1 &nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="2-5" NAME="RestaurantNumber">2-5 &nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="6-10" NAME="RestaurantNumber">6-10 &nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="11-20" NAME="RestaurantNumber">11-20 &nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="20+" NAME="RestaurantNumber">20+</TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>This is a new restaurant:</B></TD>';
			  strTable=strTable + '<TD><INPUT TYPE="radio" VALUE="Yes" NAME="NewRestaurant">Yes&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="No" NAME="NewRestaurant">No</TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>Number of POS stations needed</B> (per site):</TD>';
			  strTable=strTable + '<TD><INPUT TYPE="radio" VALUE="1" NAME="NumberOfStations">1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="2-3" NAME="NumberOfStations">2-3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="4-5" NAME="NumberOfStations">4-5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="6-9" NAME="NumberOfStations">6-9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="10+" NAME="NumberOfStations">10+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>Average yearly sales:</B></TD>';
			  strTable=strTable + '<TD><SELECT NAME="YearlySales" SIZE="1">';
			  strTable=strTable + '<OPTION VALUE="Under $500,000">Under $500,000</OPTION>';
			  strTable=strTable + '<OPTION VALUE="$500,000 to $1 Million">$500,000 to $1 Million</OPTION>';
			  strTable=strTable + '<OPTION VALUE="$1 Million to $2 Million">$1 Million to $2 Million</OPTION>';
			  strTable=strTable + '<OPTION VALUE="$4 Million to $4 Million">$2 Million to $4 Million</OPTION>';
			  strTable=strTable + '<OPTION VALUE="$4 Million + ">$4 Million +</OPTION></SELECT></TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>I am currently using the following system:</B></TD>';
			  strTable=strTable + '<TD><INPUT TYPE="text" NAME="CurrentSystem" SIZE="20">&nbsp;&nbsp;&nbsp;Year Installed:&nbsp; 19<INPUT TYPE="text" NAME="YearInstalled" SIZE="3" MAXLENGTH="2"></TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>Internet Connection:</B></TD>';
			  strTable=strTable + '<TD><INPUT TYPE="radio" VALUE="No" NAME="Connection">No&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="Phone Line" NAME="Connection">Phone Line&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="DSL" NAME="Connection">DSL&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="Cable/Modem" NAME="Connection">Cable/Modem&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="Other" NAME="Connection">Other &nbsp;&nbsp;</TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>Best time to reach you:</B></TD>';
			  strTable=strTable + '<TD><SELECT NAME="TimeToReach" SIZE="1">';
			  strTable=strTable + '<OPTION VALUE="10:00 AM">10:00 AM</OPTION>';
			  strTable=strTable + '<OPTION VALUE="11:00 AM">11:00 AM</OPTION>';
			  strTable=strTable + '<OPTION VALUE="12:00 PM">12:00 PM</OPTION>';
			  strTable=strTable + '<OPTION VALUE="1:00 PM">1:00 PM</OPTION>';
			  strTable=strTable + '<OPTION VALUE="2:00 PM">2:00 PM</OPTION></SELECT></TD></TR>';
			  strTable=strTable + '<TR><TD ALIGN="right"><B>Plan to get a new POS:</B></TD>';
			  strTable=strTable + '<TD><INPUT TYPE="radio" VALUE="Now" NAME="GetPOS">Now&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="within 3 months" NAME="GetPOS">within 3 months&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="within 1 year" NAME="GetPOS">within 1 year&nbsp;&nbsp;';
			  strTable=strTable + '<INPUT TYPE="radio" VALUE="I do not know" NAME="GetPOS">I do not know&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR>';
			  strTable=strTable + '<TR><TD COLSPAN="2"><B>COMMENTS:</B></TD></TR>';
			  strTable=strTable + '<TR><TD COLSPAN="2" ALIGN="center"><TEXTAREA COLS="60" ROWS="5" NAME="Commnts"></TEXTAREA></TD></TR>';
	
	          }
		
			    strTable=strTable + '<TR><TD COLSPAN="2">&nbsp;</TD></TR>'
				strTable=strTable + '<TR><TH COLSPAN="2" STYLE="font-size:15px; font-type:Arial">Thank you for your time,</TH></TR>'
				strTable=strTable + '<TR><TH COLSPAN="2" STYLE="font-size:15px; font-type:Arial">a sales representative</TH></TR>'
				strTable=strTable + '<TR><TH COLSPAN="2" STYLE="font-size:15px; font-type:Arial">will be in touch with you.<BR><BR></TH></TR>'
				strTable=strTable + '<TR><TH COLSPAN="2" STYLE="font-size:15px; font-type:Arial"><INPUT TYPE="submit" VALUE="SUBMIT FORM"></TH></TR>'			    
				strTable=strTable + '</TABLE></FORM>';  		   

				document.all.here.innerHTML=strTable;
			}
//*******End Of  Creating Tables for Contact Form *****			
