//======================================================================================= /* Dynamic Script V.1 Creator: Paulo Corcino Functions: init, loadframe */ //======================================================================================= // JavaScript Document //--------------------------------------------------------------------------- //Previw Image - cod: previewImg documentall = document.all; //--------------------------------------------------------------------------- function ispocket(){ if(screen.width<640) return true; else return false; } //-------------------------------------------------------------------------- var IPocket = 0; if(ispocket()){ IPocket = 1; }else{ IPocket = 0; } //--------------------------------------------------------------------------- function listobjcols(t,c){ //AjaxLoad("fields.asp","table="+t,c); listcolsstat(t); } //--------------------------------------------------------------------------- function actioncol(obj,v){ obj.value = v; //alert(obj.value); } //--------------------------------------------------------------------------- function isIE(){ if(navigator.appName=='Microsoft Internet Explorer') return true; else return false; } //--------------------------------------------------------------------------- function data(){ var datas = new Date(); //document.write(datas.getHours()); return datas.getSeconds(); tId = setTimeout("data()",1000); } //--------------------------------------------------------------------------- function abrir(url){ if(ispocket()) parent._nome.location.href = url; else window.open(url,"_nome"); } //--------------------------------------------------------------------------- function WindowOpen(url){ if(ispocket()) window.location.href = url; else window.open(url,"_self"); } //--------------------------------------------------------------------------- function DeleteCookie (name) { var exp = new Date(); //var cval = GetCookie (name); document.cookie = name + "=off; expires=" + exp.toGMTString(); } //--------------------------------------------------------------------------- function getrandom(){ var ran_unrounded=Math.random()*9999999; var ran_number=Math.round(ran_unrounded); return ran_number; } //--------------------------------------------------------------------------- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--------------------------------------------------------------------------- function MsgDia(){ var hora = new Date(); var Msg = ""; if(hora.getHours()>=18) Msg = "Boa Noite"; else if(hora.getHours()>=12) Msg = "Boa Tarde"; else Msg = "Bom Dia"; return Msg; } //--------------------------------------------------------------------------- function OpGerarSel(v) { if(v==0) { document.form.qtsPrint.value = ''; document.form.qtsPrint.disabled = true; } else { document.form.qtsPrint.disabled = false; document.form.qtsPrint.value = 0; } } //Carrega Frames - cod: loadframe //------------------------------------------------------------------------------- //--------------------------------------------------------------------------- function CarregaFrames(){ var html = ""; var Fdim = 0; if(ispocket()) Fdim = 25; else Fdim = 40; html = html + ''; html = html + ''; html = html + ''; html = html + ''; html = html + ''; html = html + ''; html = html + ''; return html; } //---------------------------------------------------------