
function imageon(image,stat){
	if(document.images){
		var newimg = "images/" + image + "_h.gif";
		document[image].src = newimg;
		window.status = stat;
	}
}
function imageoff(image){
	if(document.images){
		var newimg = "images/" + image + ".gif";
		document[image].src = newimg;
		window.status = "";
	}
}
//preload images
function preload(){
	if(document.images){
		var imgs = preload.arguments;
		if(document.preloadarray == null) document.preloadarray = new Array();
		for(var i = 0; i < arguments.length; i++){
			document.preloadarray[i] = new Image;
			document.preloadarray[i].src = "images/" + imgs[i];
			//alert(document.preloadarray[i].src);
		}
	}
}

function loaded(){
	preload('link_sitefeatures_h.gif','link_contactus_h.gif','link_aboutus_h.gif','link_glossary_h.gif','link_links_h.gif','link_news_h.gif','link_industrystats_h.gif','link_products_h.gif','link_methodology_h.gif','link_upcomingevents_h.gif','link_submitnews_h.gif','link_venturecap_h.gif','link_privatequity_h.gif','link_ma_h.gif','link_publicipo_h.gif','link_publicmicro_h.gif','link_people_h.gif','link_funds_h.gif','button_login_h.gif','link_forgotpassword_h.gif','link_becomeclient_h.gif',
			'link_vcreporter_h.gif','link_surveyforms_h.gif','link_administration_h.gif','link_vccompany_h.gif','link_vcinvestor_h.gif','link_vcdeal_h.gif','link_vcquarterly_h.gif','link_vcannual_h.gif',
			'link_statsmezzanine_h.gif','link_statspress_h.gif','link_provcreporter_h.gif','link_profinancingforum_h.gif','link_procustresearch_h.gif');
}

window.onload = loaded;


function popup(src){
		typ = window.open(src,'',"location=no,menubar=no,screenx=25,left=25,screeny=25,top=25,status=yes,toolbar=no,width=650,height=500,scrollbars=yes,resizable=yes");
		typ.focus();
		
		}
function popup_noresizable(typ,src){
		if(typ == 'vcanalyst_flash'){
			offset = 25;
			width = 550;
			height = 400;
			}
			
		typ = window.open(src,typ,"location=no,menubar=no,screenx=" + offset + ",left=" + offset + ",screeny=" + offset + ",top=" + offset + ",status=no,toolbar=no,width=" + width + ",height=" + height + ",scrollbars=no,resizable=no");
		typ.focus();	
}	

function popup_noscrollable(typ,src){
		
		if(typ == 'cube1'){
			offset = 25;
			width = 750;
			height = 500;
			}
		if(typ == 'cube2'){
			offset = 25;
			width = 750;
			height = 500;
			}
		if(typ == 'cube3'){
			offset = 25;
			width = 750;
			height = 500;
			}
		if(typ == 'cube4'){
			offset = 25;
			width = 750;
			height = 500;
			}
		if(typ == 'cube5'){
			offset = 25;
			width = 750;
			height = 500;
			}
		if(typ == 'cube6'){
			offset = 25;
			width = 750;
			height = 500;
			}	
		if(typ == 'slideshow'){
			offset = 25;
			width = 800;
			height = 600;
			}						
		typ = window.open(src,typ,"location=no,menubar=no,screenx=" + offset + ",left=" + offset + ",screeny=" + offset + ",top=" + offset + ",status=no,toolbar=no,width=" + width + ",height=" + height + ",scrollbars=no,resizable=yes");
		typ.focus();	
}				

if (navigator.appName == "Netscape")
{
	window.captureEvents(Event.KEYPRESS)
	window.onKeyPress = checkIt;
}

function checkIt(e)
{ 
  var charCode = (navigator.appName == "Netscape") ? e.which : e.keyCode;
  //status = charCode
  if (charCode == 13)
  {
    window.document.forms[0].submit();
  }
  return true;
}

function ForceEntry(objField, FieldName)
{
	var strField = new String(objField.value);
	if (isWhitespace(strField)) {
		alert("You need to enter information for " + FieldName);
		objField.focus();
		objField.select();
		return false;
	}

	return true;
}

function EnterKeyPress()
{
	if(document.all)
	{
		if (event.keyCode == 13)
		{
			if (document.all._ctl0_lookupToolbar_btnSubmit != null)
			{
				event.returnValue=false;
				event.cancel=true;
				document.all._ctl0_lookupToolbar_btnSubmit.click();
			}
		}
	}
}

function valSubmit() {
var doc = document.InfoTemplate[0];
var msg = "";
var msg = "";
//if (doc.txtFirstName.Text == "") {
if (document.getElementById('_ctl1_txtFirstName').value == "")
{
msg += "- First Name" + "\n";
}
//if (doc.txtLastName.Text == "") {
if (document.getElementById('_ctl1_txtLastName').value == "")
{
msg += "- Last Name" + "\n";
}
if (msg == "") {
//document.form.submit();
} else {
var valMsg1 = "The following required fields are missing.";
var valMsg2 = "Please complete and resubmit."
alert(valMsg1 + "\n\n" + valMsg2 + "\n\n" + msg);
return;
} }


