function sel_question()
{
	if(document.selform.quick.value != "")
	{
 	  var strid=document.selform.quick.value;
	//  document.selform.strid.value=strid;
  //document.selform.type.value="question";
//window.open('question.asp?id='+strid+'&type=question','','scrollbars=no,width=500,height=500,left=250,top=100,resizable=no');
	location.href="question.asp?id="+strid+"&type=question";
	}
}

function shownews(strid)
{
location.href='news.asp?id='+strid;
//window.open('news.asp?id='+strid+'&type=news','','scrollbars=no,width=550,height=500,left=250,top=100,resizable=no');
}

function showcust(strid)
{
window.open('customer.asp?id='+strid+'&type=cust','','scrollbars=no,width=550,height=500,left=250,top=100,resizable=no');
}

function error(elem, text) {	alert(text); 	elem.focus();	return false; }

function num_bullet(strnum){
var bullet=document.regform.list_bullet.value;
	if(bullet.indexOf(strnum)== -1)	document.regform.list_bullet.value=document.regform.list_bullet.value+strnum+";";
var bulletnew=document.regform.list_bullet.value;
while (bulletnew.substring(0,1)==" ") {
		bulletnew = bulletnew.substring(1);
	}
newbullet=bulletnew.split(";");
count=0;
for(i=0;i<newbullet.length;i++)
{
	if(newbullet[i].length>0)
		{
		count=count+1;
		if(count>2)
		{
		alert('To read all the case examples please sign up first ');
		location.href='../support/register.asp';
		}
		}
	}
}

function gotonext(strtitle)
{
/*var title=document.regform.list_title.value;
	if(title.indexOf(strtitle)== -1)
	{
	document.regform.list_title.value=document.regform.list_title.value+";"+strtitle;
	}
var titlenew=document.regform.list_title.value;
while (titlenew.substring(0,1)==" ") {
		titlenew = titlenew.substring(1);
	}
newsub=titlenew.split(";");
j=1;
for(i=0;i<newsub.length;i++)
{
if(newsub[i].length>0)
	{
	document.getElementById("id"+j).innerHTML	=newsub[i];
	document.getElementById("sep"+j).innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;";
	j=j+1;
	}
if(j>5)	j=0;
}*/
}

function validate()
 {
   with (document.regform)
    {
	  if(txt_username.value=="") return error(txt_username,"Username must be entered.");
	  if(txt_password.value=="") return error(txt_password,"Password must be entered.");
    }
 document.regform.submit();
}

function animate_over()
{
	document.getElementById("img1").src = "images/hand.gif";
}

function animate_out()
{
	document.getElementById("img1").src = "images/ball.gif";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  objwin=window.open(theURL,winName,features);
  objwin.focus();	
}