/*
	B.Stenseth 2007.
	- display of my card
	relies on:
	http://www.ia.hiof.no/~borres/common/jscripts/std.js 
	for proper AJAX-action
*/


//------------------------  specialized  ajax -------------------
function showCard(code){
	// must modify address so it match the it vs ia address
	var url = 'http://www.ia.hiof.no/~borres/cgi-bin/signature/ajaxsignature.py';
	var host=window.location.host;
	if(host.indexOf('www.it.hiof')!=-1)
		url='http://www.it.hiof.no/~borres/cgi-bin/signature/ajaxsignature.py';    
	
	var myRequest=establishRequest();
    if (myRequest)
    {
        postRequest(myRequest,'code='+code,'showcard',url);
        if (document.getElementById('latin'))
          document.getElementById('latin').innerHTML=''
    }
    else
  	{
        simplepopup('http://www.ia.hiof.no/~borres/cgi-bin/signature/signature.py','signatur','scrollbars=no,resizable=no,width=300,height=120,status=0');
    }
}


