var width,height
var image,ext
var cond1,cond2
var n
var address = "gjcsoftware.com";

function protectmail(name, link, subject, body) {
document.write("<a href='mailto:" + name + "@" + address + "?subject=" + subject + "&body=" + body + "'>" + link + "</a>");
}


function maillink(em)
{
  var retval="<a href= \"mailto:";
  var ema="";
  for (count=em.length; count >= 0; count--)
 	 ema+=em.substring(count,count-1);
  ema+="@gjcsoftware.com";
  retval+= ema + "\">" + ema + "</a>";
  return retval;
}

function reverse_text(revtex)
{
 var msgtxt="";
 for (count=revtex.length; count >= 0; count--)
 	 msgtxt+=revtex.substring(count,count-1);

 return msgtxt;
}

function phnum()
{
 var ph = "9976-962 )237(";
 var msgtxt="";
 for (count=ph.length; count >= 0; count--)
 	 msgtxt+=ph.substring(count,count-1);

 return msgtxt;
}

function faxnum()
{
 var ph = "9904-962 )237(";
 var msgtxt="";
 for (count=ph.length; count >= 0; count--)
 	 msgtxt+=ph.substring(count,count-1);

 return msgtxt;
}

function transferview(image,width,height) {
	if (width==0) cond1=" "
		else cond1="width="+(width+20)+"";
	if (height==0) {cond2=" "};
		else {cond2="height="+(height+70)+""};

	var s1 ="<TITLE>Image</TITLE>"
	var s15=""
	var s2 ="<CENTER><IMG SRC='"+image+"' BORDER=0>"
	var s3 ="<FORM><INPUT TYPE='BUTTON' VALUE='Close Window'"+	" onClick='self.close()'>"
	var s4 ="</FORM></CENTER>"

	ImageWindow=window.open("", ""+width,"toolbar=no,scrollbars="+scroll+",menubar=no,"+cond1+","+cond2);
	ImageWindow.document.write(s1+s15+s2+s3+s4)
	ImageWindow.document.close()
}

function transferview1(image,n,width,height) {
	if (width==0) cond1=" "
		else cond1="width="+(width+20)+"";
	if (height==0) {cond2=" "};
		else {cond2="height="+(height+70)+""};

	var s1 ="<TITLE>Screen Capture</TITLE>"
	var s15=""
	var s2 ="<img src='"+image+"'>"
	var s3 ="<form><input class='button' value='Close Window'"+ " onClick='window.close()'></form>"
	
	
	

	ImageWindow=window.open("",n+width,"toolbar=no,scrollbars="+scroll+",menubar=no,"+cond1+","+cond2);
	
	
	ImageWindow.document.write("<html>")
	ImageWindow.document.write("<head>")
	ImageWindow.document.write("<link href='../css/gjc.css' type='text/css' rel='stylesheet' media='all' />")
	ImageWindow.document.write("<link href='../css/ss.css' type='text/css' rel='stylesheet' media='all' />")
	ImageWindow.document.write("</head>")
	
	ImageWindow.document.write("</body>")
	ImageWindow.document.write("<div class='screenpage'>")
	ImageWindow.document.write(s2)
	ImageWindow.document.write(s3)
	
	ImageWindow.document.write("</div>")
	ImageWindow.document.write("</body>")
	ImageWindow.document.write("</html>")

	ImageWindow.document.close()
}

var urlRef

function OpenNewWin(urlRef) {
	ImageWindow=window.open(urlRef, "");
	ImageWindow.document.close()
}

function pasuser(form) {
  if (form.id.value=="JavaScript") { 
    if (form.pass.value=="Kit")
      location="page2.html";
    else
      alert("Invalid Password");
  }
  else
    alert("Invalid UserID");
}			